2026-08-25 11:42:24 +02:00
|
|
|
# Copy to .env and replace every placeholder. Never commit .env.
|
|
|
|
|
|
|
|
|
|
# --- Domains (Caddy) ---
|
|
|
|
|
PUBLIC_DOMAIN=blog.localhost
|
|
|
|
|
ACME_EMAIL=admin@example.com
|
|
|
|
|
|
|
|
|
|
# --- Database ---
|
|
|
|
|
POSTGRES_DB=blog
|
|
|
|
|
POSTGRES_USER=blog
|
|
|
|
|
POSTGRES_PASSWORD=change-me
|
|
|
|
|
|
|
|
|
|
# --- Strapi ---
|
|
|
|
|
# Generate each secret with: openssl rand -base64 32
|
|
|
|
|
APP_KEYS=change-me-1,change-me-2
|
|
|
|
|
API_TOKEN_SALT=change-me
|
|
|
|
|
ADMIN_JWT_SECRET=change-me
|
|
|
|
|
TRANSFER_TOKEN_SALT=change-me
|
|
|
|
|
JWT_SECRET=change-me
|
|
|
|
|
ENCRYPTION_KEY=change-me
|
|
|
|
|
|
|
|
|
|
# --- Frontend ---
|
|
|
|
|
# Server-side only: internal Docker address of Strapi.
|
|
|
|
|
STRAPI_URL=http://cms:1337
|
|
|
|
|
# Public base URL of the website, used for canonical URLs and Open Graph.
|
|
|
|
|
PUBLIC_SITE_URL=https://blog.localhost
|
|
|
|
|
# Public base URL of Strapi, used to build absolute media URLs in the browser.
|
2026-08-25 19:49:37 +02:00
|
|
|
# Same origin as PUBLIC_SITE_URL: Caddy proxies /admin and /uploads to Strapi.
|
|
|
|
|
PUBLIC_STRAPI_URL=https://blog.localhost
|