Files
hamprint/.env.example

45 lines
1.9 KiB
Plaintext

# Copy this file to `.env` and fill in real values. Compose interpolates
# ${...} references in compose.yaml directly from `.env`, and the `web`
# container also receives the whole file via `env_file:`.
# --- Django ---
# Generate a fresh key in prod, e.g.
# python -c "import secrets; print(secrets.token_urlsafe(64))"
SECRET_KEY=replace-me-with-a-long-random-string
DEBUG=true
ALLOWED_HOSTS=localhost,127.0.0.1
# Public base URL used in outgoing emails (confirmation link, detail-page
# link). Defaults to http://localhost:8000 if unset. In production set to
# e.g. https://print.hamlab.lt -- no trailing slash.
SITE_URL=http://localhost:8000
# --- PostgreSQL ---
# Used by the `db` container and interpolated into DATABASE_URL inside
# compose.yaml; the `web` container reads DATABASE_URL via dj-database-url.
POSTGRES_DB=hamprint
POSTGRES_USER=hamprint
POSTGRES_PASSWORD=changeme
# --- Mailtrap (transactional email) ---
# When MAILTRAP_API_TOKEN is set, Django sends through Mailtrap's HTTPS API
# via django-anymail. When blank, settings/base.py falls back to the console
# email backend -- handy for local development without burning real quota or
# spamming real addresses.
# Get a token at https://mailtrap.io/api-tokens
MAILTRAP_API_TOKEN=
DEFAULT_FROM_EMAIL=hamprint <noreply@hamlab.lt>
# Optional: set to a Mailtrap testing-inbox ID to capture outgoing mail in a
# sandbox inbox instead of actually delivering it. Find the ID in the URL
# of the inbox at https://mailtrap.io/inboxes. Leave blank for real sending.
MAILTRAP_TEST_INBOX_ID=
# --- Google OAuth (django-allauth Google provider) ---
# Configure at https://console.cloud.google.com/apis/credentials and add a
# SocialApp via Django admin (/admin/socialaccount/socialapp/add/).
# Leave blank until the `allauth.socialaccount.providers.google` line is
# uncommented in hamprint/settings/base.py.
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=