mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 10:19:51 -06:00
* fix: docker env parsing & response bug when built w docker * chore: bring back env example * fix: docker compose envs are now single place defined * add: renaming of .env in docs * remove: existence of prisma_generate_data_proxy * fix: use newer env vars and a smarter way to handle existing .env file * fix: remove text to remove existing .enb * fix: remove comments, local testing, and mention of more updating via echo in prod script * fix: env ending * fix: finalllyyy the docker compose works * feat: short survey url support in docker compose * fix: add envs to prod script * chore: reorder env vars for uniformity * update description for SHORT_SURVEY_BASE_URL * fix: add ASSET_PREFIX_URL to prod script & docker compose --------- Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
113 lines
2.9 KiB
Plaintext
113 lines
2.9 KiB
Plaintext
/*
|
|
########################################################################
|
|
# ------------ MANDATORY (CHANGE ACCORDING TO YOUR SETUP) ------------#
|
|
########################################################################
|
|
|
|
|
|
############
|
|
# BASICS #
|
|
############
|
|
|
|
WEBAPP_URL=http://localhost:3000
|
|
|
|
SURVEY_BASE_URL=http://localhost:3000/i
|
|
|
|
# Set this if you want to have a shorter link for surveys
|
|
SHORT_SURVEY_BASE_URL=
|
|
|
|
##############
|
|
# DATABASE #
|
|
##############
|
|
|
|
DATABASE_URL='postgresql://postgres:postgres@localhost:5432/formbricks?schema=public'
|
|
|
|
###############
|
|
# NEXT AUTH #
|
|
###############
|
|
|
|
# @see: https://next-auth.js.org/configuration/options#nextauth_secret
|
|
# You can use: `openssl rand -base64 32` to generate one
|
|
NEXTAUTH_SECRET=RANDOM_STRING
|
|
|
|
# Set this to your public-facing URL, e.g., https://example.com
|
|
# You do not need the NEXTAUTH_URL environment variable in Vercel.
|
|
NEXTAUTH_URL=http://localhost:3000
|
|
|
|
################
|
|
# MAIL SETUP #
|
|
################
|
|
|
|
# Necessary if email verification and password reset are enabled.
|
|
# See optional configurations below if you want to disable these features.
|
|
|
|
MAIL_FROM=noreply@example.com
|
|
SMTP_HOST=localhost
|
|
SMTP_PORT=1025
|
|
# Enable SMTP_SECURE_ENABLED for TLS (port 465)
|
|
SMTP_SECURE_ENABLED=0
|
|
SMTP_USER=smtpUser
|
|
SMTP_PASSWORD=smtpPassword
|
|
|
|
|
|
########################################################################
|
|
# ------------------------------ OPTIONAL -----------------------------#
|
|
########################################################################
|
|
|
|
# Uncomment the variables you would like to use and customize the values.
|
|
|
|
#####################
|
|
# Disable Features #
|
|
#####################
|
|
|
|
# Email Verification. If you enable Email Verification you have to setup SMTP-Settings, too.
|
|
# EMAIL_VERIFICATION_DISABLED=1
|
|
|
|
# Password Reset. If you enable Password Reset functionality you have to setup SMTP-Settings, too.
|
|
# PASSWORD_RESET_DISABLED=1
|
|
|
|
# Signup. Disable the ability for new users to create an account.
|
|
# SIGNUP_DISABLED=1
|
|
|
|
# Team Invite. Disable the ability for invited users to create an account.
|
|
# INVITE_DISABLED=1
|
|
|
|
##########
|
|
# Other #
|
|
##########
|
|
|
|
# Display privacy policy, imprint and terms of service links in the footer of signup & public pages.
|
|
PRIVACY_URL=
|
|
TERMS_URL=
|
|
IMPRINT_URL=
|
|
|
|
# Configure Github Login
|
|
GITHUB_AUTH_ENABLED=0
|
|
GITHUB_ID=
|
|
GITHUB_SECRET=
|
|
|
|
# Configure Google Login
|
|
GOOGLE_AUTH_ENABLED=0
|
|
GOOGLE_CLIENT_ID=
|
|
GOOGLE_CLIENT_SECRET=
|
|
|
|
# Cron Secret
|
|
CRON_SECRET=
|
|
|
|
# Encryption key
|
|
# You can use: `openssl rand -base64 16` to generate one
|
|
FORMBRICKS_ENCRYPTION_KEY=
|
|
|
|
# Configure this when you want to ship JS & CSS files from a complete URL instead of the current domain
|
|
# ASSET_PREFIX_URL=
|
|
|
|
# Stripe Billing Variables
|
|
STRIPE_SECRET_KEY=
|
|
STRIPE_WEBHOOK_SECRET=
|
|
|
|
# Configure Formbricks usage within Formbricks
|
|
NEXT_PUBLIC_FORMBRICKS_API_HOST=
|
|
NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID=
|
|
NEXT_PUBLIC_FORMBRICKS_ONBOARDING_SURVEY_ID=
|
|
|
|
*/
|