chessbaseLinux/website/.env.example
vrubelroman df2ee6f528
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Installation counter after review: strict input, limits, country only, GitHub outages
- /api/update takes a 32-hex id, an x.y.z version and a known platform; at most 5 new
  installations a day per address are counted (made-up ids do not flood the bot).
- A download's notice: once a day per file and visitor; notices name the country only,
  as the texts promise; Android's text also says the system is sent.
- The release cache is not locked while GitHub is asked (one request asks, the others
  get what is known); after a failure GitHub is asked again in a minute, not on every
  request.
- An unrecognised desktop installation counts as 'other'; the bot logs a wrong token or a
  second listener; .env.example lists the bot's settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 14:08:05 +03:00

22 lines
789 B
Text

# Copy to .env and fill in. .env is not committed.
# Public address of the site (canonical links, sitemap, link previews).
SITE_URL=https://chesspenguin.example.org
# Local docker compose only: port on 127.0.0.1 (production uses deploy/, port 8140).
HOST_PORT=8080
# Time zone for "today" on /stats.
TZ=Europe/Moscow
# /stats and /stats.csv: basic auth. An empty password turns /stats off.
STATS_USER=admin
STATS_PASSWORD=
# Releases are taken from this GitHub repository.
GITHUB_REPO=vrubelroman/chessPenguin
# Take the visitor address from X-Forwarded-For / X-Real-IP (set by nginx).
TRUST_PROXY=1
# The owner's Telegram bot (downloads, installations, /stat): its token from @BotFather
# and the owner's chat id. Empty: no notices. One server per bot.
TELEGRAM_TOKEN=
TELEGRAM_CHAT=