Files
mc-computer-craft-api-backend/.env.example
T
2026-05-26 12:26:05 +02:00

26 lines
1.0 KiB
Bash

# --- Server -----------------------------------------------------------------
HOST=0.0.0.0
PORT=3000
LOG_LEVEL=info
# --- Database ----------------------------------------------------------------
# When running via docker-compose this is overridden to use the `db` service.
DATABASE_URL=postgres://mccc:mccc@localhost:5432/mccc
# --- History -----------------------------------------------------------------
# Minimum seconds between two history snapshots written on ingest.
HISTORY_INTERVAL_SECONDS=300
# --- TLS ---------------------------------------------------------------------
# A self-signed certificate is generated automatically into ./certs when these
# files do not exist. Set TLS_ENABLED=false to serve plain HTTP/WS instead.
TLS_ENABLED=true
TLS_CERT_PATH=./certs/cert.pem
TLS_KEY_PATH=./certs/key.pem
# --- Misc --------------------------------------------------------------------
# Allowed browser origin for the frontend. Use a concrete URL in production.
CORS_ORIGIN=*
# Base URL advertised in the OpenAPI document.
PUBLIC_URL=https://localhost:3000