-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
25 lines (21 loc) · 1.01 KB
/
Copy path.env.example
File metadata and controls
25 lines (21 loc) · 1.01 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
# Production environment for docker-compose.prod.yml.
# Copy to `.env`, fill in real values, and never commit it.
# ---- Database ---------------------------------------------------------------
POSTGRES_USER=travel
POSTGRES_DB=traveljournal
# Use a long random value.
# python -c "import secrets; print(secrets.token_urlsafe(32))"
POSTGRES_PASSWORD=
# ---- Application secret -----------------------------------------------------
# Signs access tokens. Rotating it invalidates every active session.
# python -c "import secrets; print(secrets.token_urlsafe(48))"
SECRET_KEY=
# ---- Public URLs ------------------------------------------------------------
# The origin browsers use. Photo URLs are built from this, so it must be correct.
PUBLIC_BASE_URL=https://journal.example.com
# Comma-separated. A wildcard is rejected in production.
CORS_ORIGINS=https://journal.example.com
# ---- Optional ---------------------------------------------------------------
HTTP_PORT=80
ACCESS_TOKEN_TTL_MINUTES=15
REFRESH_TOKEN_TTL_DAYS=30