Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
49 lines (40 loc) · 1.8 KB
/
Copy path.env.example
File metadata and controls
49 lines (40 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Database
DATABASE_URL=postgres://tracearr:tracearr@localhost:5432/tracearr
# Redis
REDIS_URL=redis://localhost:6379
# Optional: prefix for all Redis keys (useful when sharing a Redis instance)
# REDIS_PREFIX=
# Server
PORT=3000
HOST=0.0.0.0
NODE_ENV=development
LOG_LEVEL=debug
# Auth - CHANGE THESE IN PRODUCTION!
JWT_SECRET=your-secret-key-change-in-production
COOKIE_SECRET=your-cookie-secret-change-in-production
# Better Auth signing/encryption key (optional). Generate: openssl rand -hex 32
# When unset, it's derived deterministically from JWT_SECRET so upgrading
# installs don't need a new env var. Setting it explicitly is recommended,
# and every instance sharing a deployment must use the same value (or the
# same JWT_SECRET, if relying on derivation). It becomes required once
# JWT_SECRET is retired in a later cleanup release.
# BETTER_AUTH_SECRET=your-better-auth-secret-change-in-production
# CORS (frontend URL)
# Behind an HTTPS reverse proxy, logins work as long as the proxy preserves
# the Host header, forwards x-forwarded-host, or this is set to the public
# URL. Forward x-forwarded-proto so session cookies carry the Secure
# attribute over HTTPS.
CORS_ORIGIN=http://localhost:5173
# Reverse proxy support - trust X-Forwarded-* headers for client IP and protocol
# TRUST_PROXY=true
# Gzip compression - enable if not behind a reverse proxy that handles compression
# GZIP_ENABLED=true
# DNS caching - cache DNS lookups for outbound requests (value in seconds, disabled when unset)
# DNS_CACHE_MAX_TTL=120
# Mobile beta testing mode - enables reusable tokens, no expiry, unlimited devices
# MOBILE_BETA_MODE=true
# Optional OIDC sign-in (Tracearr as OIDC client). All three must be set to enable.
# OIDC_ISSUER_URL=https://auth.example.com
# OIDC_CLIENT_ID=
# OIDC_CLIENT_SECRET=
# OIDC_PROVIDER_NAME=Authentik