fix: support Discord sign-in behind a trusted TLS proxy

This commit is contained in:
syntaxbullet
2026-09-07 11:50:22 +02:00
parent c7aa5a1c65
commit 50d7838de3
4 changed files with 36 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
# Loaded by bun start and bun run db:migrate:production.
# Set your public origin, e.g. https://habits.example.com
APP_ORIGIN=
# Enable only behind a private proxy that overwrites X-Forwarded-Proto.
TRUST_PROXY=false
# Docker sets HOST=0.0.0.0; local startup defaults to 127.0.0.1.
# Optional overrides: PORT, DATABASE_PATH, DISCORD_CLIENT_ID,
# DISCORD_CLIENT_SECRET, AUTH_COOKIE_SECRET.