Skip to content

Commit

Permalink
➕ Reordered vars and added admin allow list to env
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Müller <[email protected]>
  • Loading branch information
MelissaAutumn and devmount committed May 8, 2024
1 parent 87a7811 commit 6dca953
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
40 changes: 23 additions & 17 deletions backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# Logging level: DEBUG|INFO|WARNING|ERROR|CRITICAL
LOG_LEVEL=ERROR
LOG_USE_STREAM=1
# Possible values: prod, dev
APP_ENV=dev
# List of comma separated admin usernames. USE WITH CAUTION! Those can do serious damage to the data.
APP_ADMIN_ALLOW_LIST=

# -- FRONTEND --
FRONTEND_URL=http://localhost:8080
Expand All @@ -20,12 +24,10 @@ DB_SECRET=
SESSION_SECRET=

# -- MAIL --

# Service email for emails on behalf of Thunderbird Appointment
SERVICE_EMAIL=[email protected]
# Email address for contact or support requests. If the value is empty the support form will error out
SUPPORT_EMAIL=

# Connection security: SSL|STARTTLS|NONE
SMTP_SECURITY=NONE
# Address and port of the SMTP server
Expand All @@ -34,6 +36,8 @@ SMTP_PORT=8050
# SMTP user credentials
SMTP_USER=
SMTP_PASS=
# Authorized email address for sending emails, leave empty to default to organizer
SMTP_SENDER=

# -- TIERS --
# Max number of calendars to be simultanously connected for members of the basic tier
Expand All @@ -43,6 +47,22 @@ TIER_PLUS_CALENDAR_LIMIT=5
# Max number of calendars to be simultanously connected for members of the pro tier
TIER_PRO_CALENDAR_LIMIT=10

# -- GENERAL AUTHENTICATION --
# Possible values: password, fxa
AUTH_SCHEME=password

# For password auth only!
JWT_SECRET=
JWT_ALGO=HS256
JWT_EXPIRE_IN_MINS=10000

# -- FIREFOX AUTH --
FXA_OPEN_ID_CONFIG=
FXA_CLIENT_ID=
FXA_SECRET=
FXA_CALLBACK=
FXA_ALLOW_LIST=

# -- GOOGLE AUTH --
GOOGLE_AUTH_CLIENT_ID=
GOOGLE_AUTH_SECRET=
Expand All @@ -58,23 +78,9 @@ ZOOM_AUTH_CALLBACK=http://localhost:8090/zoom/callback
# -- SIGNED URL SECRET --
# Shared secret for url signing (e.g. create it by running `openssl rand -hex 32`)
SIGNED_SECRET=

# If empty, sentry will be disabled
SENTRY_DSN=
# Possible values: prod, dev
APP_ENV=dev
# Possible values: password, fxa
AUTH_SCHEME=password

FXA_OPEN_ID_CONFIG=
FXA_CLIENT_ID=
FXA_SECRET=
FXA_CALLBACK=
FXA_ALLOW_LIST=

# For password auth only!
JWT_SECRET=
JWT_ALGO=HS256
JWT_EXPIRE_IN_MINS=10000

# -- TESTING --
AUTH0_TEST_USER=
Expand Down
2 changes: 1 addition & 1 deletion backend/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ DB_SECRET=db-secret-pls-ignore
SESSION_SECRET=session-secret-pls-ignore

# -- MAIL --

# Service email for emails on behalf of Thunderbird Appointment
SERVICE_EMAIL=[email protected]
# Email address for contact or support requests
Expand Down Expand Up @@ -64,6 +63,7 @@ SIGNED_SECRET=test-secret-pls-ignore
SENTRY_DSN=
# Possible values: prod, dev, test
APP_ENV=test
# Possible values: password, fxa
AUTH_SCHEME=password

FXA_OPEN_ID_CONFIG=
Expand Down

0 comments on commit 6dca953

Please sign in to comment.