pcbjam/web/.env.example

29 lines
1.3 KiB
Shell
Raw Normal View History

# ---------------------------------------------------------------------------
# Copy to web/.env and adjust as needed. docker-compose and the server both
# read this file.
# ---------------------------------------------------------------------------
# --- Postgres (docker-compose) ---
POSTGRES_USER=kicad
POSTGRES_PASSWORD=kicad
POSTGRES_DB=kicad_web
# Non-default host port to avoid colliding with a local Postgres on 5432.
POSTGRES_PORT=54329
# --- Server ---
PORT=3050
# Connection string MUST match the POSTGRES_* values + port above.
DATABASE_URL=postgres://kicad:kicad@localhost:54329/kicad_web
# Where uploaded project file bytes are stored by the local-disk FileStorage.
STORAGE_ROOT=./.data/storage
# Owner namespace used while there is no auth (seeded on first migrate).
DEFAULT_OWNER_SLUG=default
# Browser origin allowed to call the API (the Vite dev server, non-default port).
CORS_ORIGIN=http://localhost:3048
# --- Frontend (Vite, must be VITE_-prefixed) ---
VITE_API_BASE_URL=http://localhost:3050
# SAME-ORIGIN: artifacts are smart-copied into public/wasm on `dev` and served by
# Vite at /wasm. Required because KiCad WASM pthread workers can't be cross-origin.
# For prod, set to a CDN URL whose origin also satisfies the worker/COEP rules.
VITE_WASM_ASSET_BASE_URL=/wasm