# REQUIRED CONFIG

# A random 32-character secret key used to encrypt user sessions
SECRET_PASSWORD=__KEY__

NEXTAUTH_SECRET=__SECRET__

# The base url where this instance is accessible, including the scheme.
# Example: https://example.com
NEXT_PUBLIC_BASE_URL=http://127.0.0.1:__PORT__

# NEXTAUTH_URL should be the same as NEXT_PUBLIC_BASE_URL
NEXTAUTH_URL=http://127.0.0.1:__PORT__

# A connection string to your Postgres database
DATABASE_URL="postgres://__DB_USER__:__DB_PWD__@127.0.0.1:5432/__DB_NAME__?sslmode=disable\&connect_timeout=10"

# EMAIL CONFIG (required for sending emails)

# All outgoing emails will show this email as the sender's email address, which also serves as the support email.
SUPPORT_EMAIL=__EMAIL__

# The host address of your SMTP server
SMTP_HOST=localhost

# The port of your SMTP server
SMTP_PORT=25

# Set to "true" if SSL is enabled for your SMTP connection
SMTP_SECURE=false

# The username (if auth is enabled on your SMTP server)
SMTP_USER=__APP__

# The password (if auth is enabled on your SMTP server)
SMTP_PWD=__MAIL_PWD__

# Enable TLS for your SMTP connection
SMTP_TLS_ENABLED=false

# OPTIONAL CONFIG

# Comma separated list of email addresses that are allowed to register and login.
# You can use wildcard syntax to match a range of email addresses.
# Example: "john@example.com,jane@example.com" or "*@example.com"
ALLOWED_EMAILS="*@__DOMAIN__,*@__MAIN_DOMAIN__"

# Toggle Self-Hosted mode
NEXT_PUBLIC_SELF_HOSTED=true
