Files
2026-10-27 12:09:31 +00:00

31 lines
1.3 KiB
Bash

# Copy to .env — it is git-ignored, never commit it.
# These defaults are for local development. On a server run `make deploy` — it fixes the
# production values and free ports for you (see README, "Quick start with Docker").
DATABASE_URL=postgresql+asyncpg://pharma
SECRET_KEY=replace-
ENVIRONMENT=development
DEBUG=true
PDF_STORAGE_PATH=./xxxxx
# --- Docker Compose (database container; must match DATABASE_URL above) ------
POSTGRES_USER=XXXXX
POSTGRES_PASSWORD=phsdfghjk
POSTGRES_DB=pharmaPOMOM
# --- Production ---------------------------------------------------------------
# Change these before deploying with `docker compose up -d --build`:
# ENVIRONMENT=production
# DEBUG=false
# POSTGRES_PASSWORD=<strong password>
# SECRET_KEY=<64+ random chars: python -c "import secrets; print(secrets.token_urlsafe(64))">
# DOMAIN=<public host name> (localhost = local TLS)
# CORS_ORIGINS=["https://celtic.upskalor.com","https://www.celtic.upskalor.com","http://localhost:5173","http://localhost:3000"]
# A production start refuses a placeholder or under-32-character SECRET_KEY.
#
# Behind an existing reverse proxy that already owns ports 80/443? Serve plain HTTP on
# another host port and let that proxy terminate TLS:
# DOMAIN=:80
# HTTP_PORT=2000
# HTTPS_PORT=2443