Add TRUST_PROXY so Express honors X-Forwarded-Proto from e.g. Nginx Proxy Manager. Without it, SECURE_COOKIES=true behind the proxy meant the session cookie was never set and login didn't stick. Document the NPM setup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
705 B
Text
23 lines
705 B
Text
# App login
|
|
SESSION_SECRET=change-me-to-a-long-random-string
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=change-me
|
|
SECURE_COOKIES=false
|
|
# Behind a reverse proxy that terminates HTTPS (e.g. Nginx Proxy Manager): set both
|
|
# SECURE_COOKIES=true and TRUST_PROXY=1 (or the proxy's IP/subnet).
|
|
TRUST_PROXY=false
|
|
|
|
# Nextcloud connection
|
|
# Generate an app password in Nextcloud: Settings -> Security -> App passwords
|
|
NEXTCLOUD_URL=https://cloud.example.com
|
|
NEXTCLOUD_USERNAME=your-nextcloud-username
|
|
NEXTCLOUD_APP_PASSWORD=your-app-password
|
|
|
|
# Target collective (Nextcloud Collectives app)
|
|
COLLECTIVE_NAME=Your Collective Name
|
|
PARENT_PAGE_TITLE=Reading Notes
|
|
|
|
# Optional
|
|
PORT=3000
|
|
HOST_PORT=3000
|
|
TOPIC_CACHE_TTL_MS=60000
|