Files
adastra_api/config/env/.env.example
T
julien f1f913f63f fix(proxy): configure trust proxy via TRUST_PROXY env var
Without trust proxy, the rate limiter uses the reverse proxy IP instead
of the real client IP, making all requests appear to come from one IP.
Set TRUST_PROXY=1 in production when behind a single nginx/Apache hop.
2026-04-26 21:58:36 +02:00

41 lines
1.1 KiB
Bash

# Application Configuration
APP_ENV="development"
NODE_ENV="development"
DEBUG=false
SERVER_PORT=3200
SECRET="your-secret-key-here"
SESSION_SECRET="your-session-secret-here"
SESSION_LIFETIME=86400
ALLOWED_ORIGINS="http://localhost:4200"
# Database - MySQL
MYSQL_DBNAME="adastra_dev"
MYSQL_DBUSER="root"
MYSQL_DBPASS=""
MYSQL_DBHOST="localhost"
MYSQL_DBPORT=3306
MYSQL_DBTYPE="mysql"
# Database - MongoDB
MONGODB_URI="mongodb://localhost:27017/adastradb"
# API Keys & External Services
SENDGRID_API_KEY="your-sendgrid-api-key"
SENDGRID_FROM_MAIL="your-email@example.com"
SENDGRID_TO_MAIL="recipient@example.com"
# CouchDB Configuration
COUCHDB_URL="http://localhost:5984"
COUCHDB_DATABASE="your-database"
COUCHDB_DESIGN="your-design"
COUCHDB_CREDENTIAL="base64-encoded-credentials"
# External APIs
SKYDIVERID_API_URL="https://api.example.com"
SKYDIVERID_API_TOKEN="your-api-token"
AUTHORIZATION_PREFIX="Api-Key"
# Reverse proxy hops in front of the API (e.g. 1 for nginx). Omit in dev.
# Required for rate limiting to use the real client IP behind a proxy.
# TRUST_PROXY=1