Custom Configurations

These variables are present inside your machine’s docker-compose file. Restart the docker containers if you change any variables for them to take effect.

VariableDescriptionRequiredDefault
WEBAPP_URLBase URL of the site.requiredhttp://localhost:3000
NEXTAUTH_URLLocation of the auth server. This should normally be the same as WEBAPP_URLrequiredhttp://localhost:3000
DATABASE_URLDatabase URL with credentials.required
NEXTAUTH_SECRETSecret for NextAuth, used for session signing and encryption.required(Generated by the user, must not exceed 32 bytes, openssl rand -hex 32)
ENCRYPTION_KEYSecret for used by Formbricks for data encryptionrequired(Generated by the user, must not exceed 32 bytes, openssl rand -hex 32)
CRON_SECRETAPI Secret for running cron jobs.required(Generated by the user, must not exceed 32 bytes, openssl rand -hex 32)
UPLOADS_DIRLocal directory for storing uploads.optional./uploads
S3_ACCESS_KEYAccess key for S3.optional(resolved by the AWS SDK)
S3_SECRET_KEYSecret key for S3.optional(resolved by the AWS SDK)
S3_REGIONRegion for S3.optional(resolved by the AWS SDK)
S3_BUCKET_NAMES3 bucket name for data storage. Formbricks enables S3 storage when this is set.optional (required if S3 is enabled)
S3_ENDPOINT_URLEndpoint for S3.optional(resolved by the AWS SDK)
PRIVACY_URLURL for privacy policy.optional
TERMS_URLURL for terms of service.optional
IMPRINT_URLURL for imprint.optional
IMPRINT_ADDRESSAddress for imprint.optional
EMAIL_AUTH_DISABLEDDisables the ability for users to signup or login via email and password if set to 1.optional
PASSWORD_RESET_DISABLEDDisables password reset functionality if set to 1.optional
EMAIL_VERIFICATION_DISABLEDDisables email verification if set to 1.optional
RATE_LIMITING_DISABLEDDisables rate limiting if set to 1.optional
INVITE_DISABLEDDisables the ability for invited users to create an account if set to 1.optional
MAIL_FROMEmail address to send emails from.optional (required if email services are to be enabled)
SMTP_HOSTHost URL of your SMTP server.optional (required if email services are to be enabled)
SMTP_PORTHost Port of your SMTP server.optional (required if email services are to be enabled)
SMTP_USERUsername for your SMTP Server.optional (required if email services are to be enabled)
SMTP_PASSWORDPassword for your SMTP Server.optional (required if email services are to be enabled)
SMTP_AUTHENTICATEDIf set to 0, the server will not require SMTP_USER and SMTP_PASSWORD(default is 1)optional
SMTP_SECURE_ENABLEDSMTP secure connection. For using TLS, set to 1 else to 0.optional (required if email services are to be enabled)
SMTP_REJECT_UNAUTHORIZED_TLSIf set to 0, the server will accept connections without requiring authorization from the list of supplied CAs.optional1
TURNSTILE_SITE_KEYSite key for Turnstile.optional
TURNSTILE_SECRET_KEYSecret key for Turnstile.optional
GITHUB_IDClient ID for GitHub.optional (required if GitHub auth is enabled)
GITHUB_SECRETSecret for GitHub.optional (required if GitHub auth is enabled)
GOOGLE_CLIENT_IDClient ID for Google.optional (required if Google auth is enabled)
GOOGLE_CLIENT_SECRETSecret for Google.optional (required if Google auth is enabled)
STRIPE_SECRET_KEYSecret key for Stripe integration.optional
STRIPE_WEBHOOK_SECRETWebhook secret for Stripe integration.optional
TELEMETRY_DISABLEDDisables telemetry if set to 1.optional
DEFAULT_BRAND_COLORDefault brand color for your app (Can be overwritten from the UI as well).optional#64748b
DEFAULT_ORGANIZATION_IDAutomatically assign new users to a specific organization when joiningoptional
DEFAULT_ORGANIZATION_ROLERole of the user in the default organization.optionalowner
OIDC_DISPLAY_NAMEDisplay name for Custom OpenID Connect Provideroptional
OIDC_CLIENT_IDClient ID for Custom OpenID Connect Provideroptional (required if OIDC auth is enabled)
OIDC_CLIENT_SECRETSecret for Custom OpenID Connect Provideroptional (required if OIDC auth is enabled)
OIDC_ISSUERIssuer URL for Custom OpenID Connect Provider (should have .well-known configured at this)optional (required if OIDC auth is enabled)
OIDC_SIGNING_ALGORITHMSigning Algorithm for Custom OpenID Connect ProvideroptionalRS256
OPENTELEMETRY_LISTENER_URLURL for OpenTelemetry listener inside Formbricks.optional
CUSTOM_CACHE_DISABLEDDisables custom cache handler if set to 1 (required for deployment on Vercel)optional

Note: If you want to configure something that is not possible via above, please open an issue on our GitHub repo here or reach out to us on Github Discussions and we’ll try our best to work out a solution with you.