mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-23 05:17:49 -05:00
13afba7615
* feat: privacy, imprint, and terms URL env vars now do not need rebuilding * feat: disable_singup env var now do not need rebuilding * feat: password_reset_disabled env var now do not need rebuilding * feat: email_verification_disabled env var now do not need rebuilding * feat: github_oauth & google_oauth env var now do not need rebuilding * feat: move logic of env vars to serverside and send boolean client-side * feat: invite_disabled env var now do not need rebuilding * feat: rename vars logically * feat: migration guide * feat: update docker-compose as per v1.1 * deprecate: unused NEXT_PUBLIC_VERCEL_URL & VERCEL_URL * deprecate: unused RAILWAY_STATIC_URL * deprecate: unused RENDER_EXTERNAL_URL * deprecate: unused HEROKU_APP_NAME * fix: define WEBAPP_URL & replace NEXT_WEBAPP_URL with it * migrate: NEXT_PUBLIC_IS_FORMBRICKS_CLOUD to IS_FORMBRICKS_CLOUD * chore: move all env parsing to a constants.ts from page files * feat: migrate client side envs to server side * redo: isFormbricksCloud to navbar serverside page * fix: constants is now a server only file * fix: removal of use swr underway * fix: move 1 tag away from swr to service * feat: move away from tags swr * feat: move away from surveys swr * feat: move away from eventClass swr * feat: move away from event swr * fix: make constants server-only * remove comments from .env.example, use constants in MetaInformation * clean up services * rename tag function * fix build error * fix smaller bugs, fix Response % not working in summary --------- Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
104 lines
2.9 KiB
Docker
104 lines
2.9 KiB
Docker
########################################################################
|
|
# ------------ MANDATORY (CHANGE ACCORDING TO YOUR SETUP) ------------#
|
|
########################################################################
|
|
|
|
|
|
############
|
|
# BASICS #
|
|
############
|
|
|
|
WEBAPP_URL=http://localhost:3000
|
|
|
|
##############
|
|
# DATABASE #
|
|
##############
|
|
|
|
DATABASE_URL='postgresql://postgres:postgres@postgres:5432/formbricks?schema=public'
|
|
|
|
# Uncomment to enable a dedicated connection pool for Prisma using Prisma Data Proxy
|
|
# Cold boots will be faster and you'll be able to scale your DB independently of your app.
|
|
# @see https://www.prisma.io/docs/data-platform/data-proxy/use-data-proxy
|
|
# PRISMA_GENERATE_DATAPROXY=true
|
|
PRISMA_GENERATE_DATAPROXY=
|
|
|
|
###############
|
|
# 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
|
|
|
|
# If you encounter NEXT_AUTH URL problems this should always be localhost:3000 (or whatever port your app is running on)
|
|
# NEXTAUTH_URL_INTERNAL=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=
|
|
|
|
# Disable Sentry warning
|
|
SENTRY_IGNORE_API_RESOLUTION_ERROR=1
|
|
|
|
# Enable Sentry Error Tracking
|
|
NEXT_PUBLIC_SENTRY_DSN=
|
|
|
|
# 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=
|