38 lines
1.7 KiB
Bash
38 lines
1.7 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
|
|
|
|
# --- Icons -------------------------------------------------------------------
|
|
# Directory containing the mod .jar files; scanned once on startup to extract
|
|
# item / block textures into the icon cache.
|
|
MODS_DIR=/mods
|
|
# Optional path to the Minecraft client jar. Needed to extract vanilla
|
|
# `minecraft:*` textures, since those live in the client jar and not in MODS_DIR.
|
|
# Example: VANILLA_JAR=C:/Users/you/AppData/Roaming/.minecraft/versions/1.20.1/1.20.1.jar
|
|
VANILLA_JAR=
|
|
# Where the extracted PNGs are cached on disk. The cache survives restarts via
|
|
# a manifest.json that tracks jar mtime+size.
|
|
ICON_CACHE_DIR=/cache/icons
|