36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
# Mnemosyne configuration — copy to mnemosyne.conf and fill in real values.
|
|
# This file is NOT committed to git. Keep it outside the repo or in config/
|
|
# (which is .gitignored). Never commit secrets.
|
|
|
|
[bot]
|
|
# Telegram bot token from @BotFather
|
|
token = YOUR_BOT_TOKEN_HERE
|
|
|
|
# Secret token sent by Telegram on every webhook POST (X-Telegram-Bot-Api-Secret-Token).
|
|
# Generate with: openssl rand -hex 32
|
|
webhook_secret = YOUR_WEBHOOK_SECRET_HERE
|
|
|
|
# Full public HTTPS URL Telegram will POST updates to.
|
|
# Include a hard-to-guess path segment as a second layer of obscurity.
|
|
webhook_url = https://mnemosyne.example.com/hook/YOUR_RANDOM_PATH_HERE
|
|
|
|
# Local port the Mojolicious app listens on (nginx proxies to this).
|
|
listen_port = 8765
|
|
|
|
# Comma-separated list of Telegram chat IDs allowed to use the bot.
|
|
# Get your chat ID by messaging @userinfobot.
|
|
allowed_chat_ids = 123456789
|
|
|
|
[db]
|
|
# Absolute path to the SQLite database file.
|
|
path = /var/lib/mnemosyne/mnemosyne.db
|
|
|
|
[app]
|
|
# IANA timezone name used for all day-granular date calculations.
|
|
timezone = America/New_York
|
|
|
|
# Default morning digest time (HH:MM, 24-hour, local time).
|
|
# Also stored in the config table and adjustable via /settime — the value here
|
|
# is written to the DB on first run; subsequent /settime changes update the DB.
|
|
digest_time = 06:30
|