# 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:pharma@127.0.0.1:5432/pharma SECRET_KEY=replace-with-a-64-char-random-string ENVIRONMENT=development DEBUG=true PDF_STORAGE_PATH=./storage/pdf # --- Docker Compose (database container; must match DATABASE_URL above) ------ POSTGRES_USER=pharma POSTGRES_PASSWORD=pharma POSTGRES_DB=pharma # --- Production --------------------------------------------------------------- # Change these before deploying with `docker compose up -d --build`: # ENVIRONMENT=production # DEBUG=false # POSTGRES_PASSWORD= # SECRET_KEY=<64+ random chars: python -c "import secrets; print(secrets.token_urlsafe(64))"> # DOMAIN= (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