# IISHKO runtime environment for systemd units. # # Install (never commit the real file): # sudo install -d -m 0750 /etc/iishko # sudo install -m 0640 -o root -g root \ # /opt/iishko/deploy/runtime.env.example /etc/iishko/runtime.env # sudoedit /etc/iishko/runtime.env # replace every REPLACE_ME # # Consumers: # deploy/systemd/grok-bot.service -> scripts/run.py bot --env-file /etc/iishko/runtime.env # deploy/systemd/iishko-webapp.service -> scripts/run.py miniapp --env-file /etc/iishko/runtime.env # deploy/systemd/grok-web-skin.service -> scripts/run.py gateway --env-file /etc/iishko/runtime.env # deploy/systemd/iishko-moderation.service -> EnvironmentFile=/etc/iishko/runtime.env (Go binary) # # Priority: a variable already present in the process environment wins over the # value in this file. scripts/run.py loads the file, normalises the legacy config # aliases (GROK_BOT_CFG / GROK_BOT_CONFIG / GATE_BOT_CONFIG) and only then starts # the target process; it does not override real environment variables. # # This file holds configuration only. Secrets live in bot/config.json (0600) and # in this file — both stay outside the repository. # --- bot config (canonical name; aliases are set by scripts/run.py) ----------- GROK_BOT_CFG=/etc/iishko/bot/config.json # --- SQLite files (absolute; create the directory first) --------------------- IISHKO_BOT_DB=/opt/iishko/var/bot.db IISHKO_GW_DB=/opt/iishko/var/newapi.db # Canonical skin DB name; GATE_TG_DB is the legacy alias for the same file. IISHKO_SKIN_DB=/opt/iishko/var/grok-web-skin-tg.db IISHKO_ECON_STATE=/opt/iishko/var/econ_cap_state.json # --- loopback listeners (never expose these directly) ----------------------- IISHKO_WEBAPP_HOST=127.0.0.1 IISHKO_WEBAPP_PORT=8850 IISHKO_GATEWAY_HOST=127.0.0.1 IISHKO_GATEWAY_PORT=48001 # --- upstream gateway (New API / one-api, external service) ------------------ IISHKO_UPSTREAM=http://127.0.0.1:48000 # --- provider registry (operator-owned file, see gateway/providers.example.json) IISHKO_PROVIDERS_FILE=/etc/iishko/providers.json # --- moderation token (required by iishko-moderation, >=32 chars) ------------ IISHKO_MODERATION_TOKEN=REPLACE_ME_MODERATION_TOKEN # --- admin Telegram IDs, comma separated ------------------------------------ IISHKO_ADMIN_IDS= # --- Telegram website session-signing secret (never commit or overwrite) ---- # Leave the path absent on first start: gateway creates it atomically with mode 0600. # Keep it outside the repo and preserve it across upgrades. An existing file must # have mode 0600 and belong to the gateway service user; its contents are not printed. TG_SID_SECRET_FILE=/etc/iishko/tg-sid-secret # --- optional features, off by default (see deploy/README.md) --------------- IISHKO_ENTRY_AUTOBAN=0 IISHKO_NOTIFICATIONS_ENABLED=0 IISHKO_SANDBOX_ENABLED=0