Environment variables

An environment variable is a dynamic value that can be set outside of an application and is used to configure or customize the behavior of an application. This page lists all environment variables supported by Rallly.

Base Configuration

These variables need to be configured for Rallly to run and function properly.

DATABASE_URL
required

Postgres database connection string

NEXT_PUBLIC_BASE_URL
required

The base url where this instance is accessible, including the scheme (eg. http:// or https://), the domain name, and optionally a port.

SECRET_PASSWORD
required

A random 32-character secret key used to encrypt user sessions

ALLOWED_EMAILS

Comma separated list of email addresses that are allowed to register and login. Wildcard characters are supported. Example: Setting it to *@example.com to allow anyone with a @example.com email address.

Email Configuration

These variables need to be configured to let Rallly send out transactional emails.

NOREPLY_EMAIL

This email is used as the sender for all transactional emails. If not set, SUPPORT_EMAIL will be used instead.

NOREPLY_EMAIL_NAME

This name is used as the sender name for all transactional emails. If not set, Rallly will be used instead.

SUPPORT_EMAIL
required

This email will be shown as the contact email for support queries.

SMTP_HOST
required

The host address of your SMTP server

SMTP_PORT
default: "25 or 465"

The port of your SMTP server

SMTP_SECURE
default: "false"

Set to “true” if SSL is enabled for your SMTP connection

SMTP_USER
default: ""

The username (if auth is enabled on your SMTP server)

SMTP_PWD
default: ""

The password (if auth is enabled on your SMTP server)

SMTP_TLS_ENABLED
default: "false"

Enable TLS for your SMTP connection

Single Sign On (SSO)

Go to Single Sign On for information on how to configure SSO.