Files

30 lines
1.3 KiB
Bash

# Cap Standalone env for staging/prod. Copy to `.env` next to the compose file,
# chmod 600, and replace every CHANGE_ME value.
CAP_IMAGE=tiago2/cap:3.1.5@sha256:97455d85b5517172397c7053837d377c72ded6250777928d5435c3eab2f58779
ADMIN_KEY=CHANGE_ME_RANDOM_MIN_32_CHARS
REDIS_URL=redis://valkey:6379
# Both supplied compose stacks use a dedicated Valkey instance. Keep this empty:
# Cap 3.1.5 does not prefix HMSET during site-key creation, so a non-empty
# prefix creates dashboard entries that the challenge endpoint cannot read.
REDIS_PREFIX=
# Serve widget.js and WASM from the self-hosted Cap instance instead of jsDelivr.
ENABLE_ASSETS_SERVER=true
WIDGET_VERSION=0.1.56
WASM_VERSION=0.0.7
# Comma-separated browser origins allowed to generate/redeem challenges.
# Staging example:
# CORS_ORIGIN=https://staging-app.hivegrid.de,https://staging-api.hivegrid.de,https://staging.hivegrid.de,https://staging-portal.hivegrid.de
# Production example:
# CORS_ORIGIN=https://app.hivegrid.de,https://admin.hivegrid.de,https://api.hivegrid.de
CORS_ORIGIN=
# Cloudflare-proxied hosts should rate-limit by the real visitor IP header.
RATELIMIT_IP_HEADER=cf-connecting-ip
# Optional diagnostics. Keep false in production unless actively debugging.
SHOW_ERRORS=false
DISABLE_ERROR_LOGGING=false