Initial public release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
81 lines
3.8 KiB
Bash
81 lines
3.8 KiB
Bash
# iishko — environment template. Copy to .env (never committed) or export in the
|
|
# service environment. Everything below is a placeholder; no real secret is here.
|
|
# cp .env.example .env
|
|
|
|
# === Layout ===
|
|
# Root of the runtime tree that bot/gateway modules are resolved from.
|
|
# Use an ABSOLUTE path: commerce/key-daemon code resolves modules from it.
|
|
IISHKO_APP_ROOT=/absolute/path/to/this/repo/bot
|
|
# Optional override of the bot source file. Default: $IISHKO_APP_ROOT/grok_bot.py
|
|
IISHKO_BOT_SOURCE=
|
|
# Module search path for a local run (production flattens both dirs together):
|
|
# POSIX: export PYTHONPATH=bot:gateway
|
|
# Windows: set PYTHONPATH=bot;gateway
|
|
PYTHONPATH=bot:gateway
|
|
|
|
# === Bot identity ===
|
|
GROK_BOT_TOKEN=REPLACE_ME_TELEGRAM_BOT_TOKEN
|
|
GROK_BOT_CFG=./bot/config.json
|
|
GROK_BOT_ALLOW_LOCAL=1 # 1 only for a local single-instance run
|
|
|
|
# === Databases (canonical names first, legacy aliases kept for older units) ===
|
|
IISHKO_BOT_DB=./bot.db # bot SQLite: users, keys, economy
|
|
GROK_BOT_DB=./bot.db # legacy alias of IISHKO_BOT_DB
|
|
GATE_BOT_DB=./bot.db # gateway-side alias of the same file
|
|
IISHKO_GW_DB=./one-api.db # external New API SQLite (read-only use)
|
|
IISHKO_SKIN_DB=./skin.db # skin/site accounts
|
|
GATE_NEWAPI_DB=./one-api.db # legacy alias of IISHKO_GW_DB
|
|
|
|
# === Upstream (external New API / one-api, AGPL-3.0, not bundled) ===
|
|
IISHKO_UPSTREAM=http://127.0.0.1:48000 # canonical upstream base URL
|
|
NEWAPI_URL=http://127.0.0.1:48000 # legacy alias read by bot config code
|
|
NEWAPI_PASS=REPLACE_ME_NEWAPI_ADMIN_PASSWORD
|
|
|
|
# === Gateway / skin (loopback only) ===
|
|
IISHKO_GATEWAY_HOST=127.0.0.1
|
|
IISHKO_GATEWAY_PORT=48001
|
|
# Provider pinning registry (opt-in). Requires a New API admin/owner credential.
|
|
# Example shape only: gateway/providers.example.json
|
|
IISHKO_PROVIDERS_FILE=
|
|
|
|
# === Mini App backend (loopback only) ===
|
|
IISHKO_WEBAPP_HOST=127.0.0.1
|
|
IISHKO_WEBAPP_PORT=8850
|
|
IISHKO_WEBAPP_PUBLIC_BASE=http://127.0.0.1:8850
|
|
|
|
# === Operators (comma separated; source contains no ids) ===
|
|
IISHKO_ADMIN_IDS=
|
|
IISHKO_ADMIN_USERNAMES=
|
|
IISHKO_PROTECTED_UIDS=
|
|
# Owner identity: 0 (default) = nobody holds owner privileges.
|
|
IISHKO_OWNER_UID=0
|
|
# Broadcast test targets ([BC-PREM]); empty = the admin set above.
|
|
IISHKO_BC_TEST_UIDS=
|
|
# Server/egress IPs excluded from the Mini App IP-lock collision scan.
|
|
# Loopback (127.0.0.1, ::1) is always excluded; put no production IP in source.
|
|
IISHKO_SRV_EXCLUDED_IPS=
|
|
|
|
# === Commerce: purchases are config-gated, there are NO enable flags ===
|
|
# The code does not read IISHKO_WALLET_ENABLED / IISHKO_PAID_OFFERS_ENABLED /
|
|
# IISHKO_COMMUNITY_BOARD_ENABLED — they are not defined here on purpose.
|
|
#
|
|
# bot/config.json "commerce_offers": [] -> purchases disabled; no default prices exist
|
|
# bot/config.json "cryptopay_token": "" -> payment create/verify unavailable
|
|
# env CRYPTOPAY_TOKEN (below) -> takes priority over the config value
|
|
#
|
|
# community_board and account_balances have no disable switch: board routes are served
|
|
# and access is limited by auth/ban/admin gates. Empty offers disable purchases only —
|
|
# reading an existing wallet and grants keeps working.
|
|
|
|
# === Other optional features, off by default ===
|
|
IISHKO_ENTRY_AUTOBAN=0 # IP-collision autoban touches balances/keys
|
|
IISHKO_BC_PREMIUM_AUTOFILL=0 # cosmetic broadcast emoji autofill
|
|
IISHKO_SANDBOX_ENABLED=0 # external command/file execution surface
|
|
IISHKO_NOTIFICATIONS_ENABLED=0 # outbound Telegram notifications
|
|
IISHKO_MEMORY_OFF=1 # 1 = no persistent chat context in RAM
|
|
|
|
# === Media / payments providers (disabled while empty) ===
|
|
CRYPTOPAY_TOKEN=
|
|
XROCKET_TOKEN=
|
|
G2A_API_KEY=
|