# newzy — environment variable template. # # Copy to `.env` and adjust as needed: # # cp .env.example .env # # `docker compose` in this directory reads `.env` automatically. `.env` is # excluded from version control (see .gitignore) — never commit secrets. # The backend's own defaults are documented in `backend/.env.example`. # --- Database ------------------------------------------------------------- # SQLite database location (SQLAlchemy URL, relative to the backend's # working directory). Inside the Docker image this resolves to # /app/data/db/newzy.db, which is bind-mounted to ./data/db on the host. DATABASE_URL=sqlite:///./data/db/newzy.db # --- Backend ---------------------------------------------------------------- # Enable debug mode (verbose logs; keep off in production). DEBUG=false # JWT signing key (HS256) used by the backend auth endpoints. Change this # before deploying publicly — the dev default is not secret. HN_SECRET_KEY=newzy-dev-secret-change-me # Comma-separated list of origins the backend allows for CORS. The Docker # frontend proxies /api (same-origin, no CORS needed); this mainly matters # when developing the frontend directly on http://localhost:5173. BACKEND_CORS_ORIGINS=http://localhost:3000,http://localhost:5173 # --- Frontend ---------------------------------------------------------------- # Base URL the frontend uses to reach the backend API. # /api -> relative (recommended: the Vite dev server and the # Docker Nginx config both proxy /api to the backend) # http://host:port -> absolute (cross-origin; the origin must be listed in # BACKEND_CORS_ORIGINS) FRONTEND_API_URL=/api