Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ POSTGRES_PASSWORD=soundlog_password
POSTGRES_DB=soundlog
JWT_SECRET=change-me-in-local-development
JWT_EXPIRES_IN_SECONDS=3600
ML_RECOMMENDATION_API_URL=http://211.188.54.204:8000/recommend
# Optional. Production accepts HTTPS endpoints only; otherwise seed recommendations are used.
ML_RECOMMENDATION_API_URL=
ML_RECOMMENDATION_TIMEOUT_MS=5000
REQUEST_BODY_LIMIT=1mb
MOMENT_PHOTO_MAX_FILE_SIZE_MB=10
Expand All @@ -19,16 +20,25 @@ REVERSE_GEOCODING_USER_AGENT=Soundlog/0.1 (+https://github.com/SoundLogTeam/Soun
TOUR_API_BASE_URL=https://apis.data.go.kr/B551011/KorService2
TOUR_API_SERVICE_KEY=
ALLOW_DEV_AUTH_FALLBACK=false
# Rate limiting for /v1/auth/login, /v1/auth/register, /v1/auth/refresh.
# AUTH_RATE_LIMIT_ENABLED defaults to true, except under NODE_ENV=test where
# it defaults to false so test suites can call auth endpoints repeatedly.
# AUTH_RATE_LIMIT_ENABLED=true
# Per-account limit (keyed by IP + email): blocks repeated attempts against one account.
AUTH_RATE_LIMIT_WINDOW_MS=900000
AUTH_RATE_LIMIT_MAX=10
# Per-IP limit (keyed by IP only): blocks credential stuffing across many different
# emails from the same IP. Looser than the per-account limit above.
AUTH_RATE_LIMIT_IP_WINDOW_MS=900000
AUTH_RATE_LIMIT_IP_MAX=40
UPLOAD_DIRECTORY=uploads
UPLOAD_PUBLIC_BASE_URL=http://localhost:4000
UPLOAD_PUBLIC_PATH=/uploads
USE_MOCK_DB=false

# Production checklist:
# NODE_ENV=production
# CLIENT_URLS=https://soundlog.shop,https://www.soundlog.shop
# After API DNS/HTTPS reverse proxy is ready:
# UPLOAD_PUBLIC_BASE_URL=https://api.soundlog.shop
# UPLOAD_PUBLIC_PATH=/uploads
# USE_MOCK_DB=false
# ALLOW_DEV_AUTH_FALLBACK=false
Loading
Loading