# Environment file for ops/uptime-healthcheck.sh (external uptime watchdog, #75). # # Install as a ROOT-OWNED, chmod-600 file that is NOT in git, on whatever host # runs the cron (ideally a host OTHER than the prod VM, so it survives a full # VPS outage): # sudo cp ops/gendesign-uptime.default.example /etc/default/gendesign-uptime # sudo chmod 600 /etc/default/gendesign-uptime # sudo $EDITOR /etc/default/gendesign-uptime # fill in real Telegram creds # # uptime-healthcheck.sh sources this file if present. With NO Telegram vars set, # it still logs up/down but sends no alert (useful for a dry run first). # # Get a bot token from @BotFather; get your chat_id by messaging the bot then # GET https://api.telegram.org/bot/getUpdates and reading message.chat.id. # --- Telegram alerting (both required to enable alerts) --- #TELEGRAM_BOT_TOKEN=123456789:AA-REPLACE_WITH_REAL_BOT_TOKEN #TELEGRAM_CHAT_ID=123456789 # --- optional overrides (defaults are sensible; uncomment only to change) --- #BASE_URL=https://gendsgn.ru #STATE_FILE=/var/tmp/gendesign-uptime-state #CURL_TIMEOUT=15 #RETRIES=2 #RETRY_SLEEP=5 # Custom check list (newline-separated "label|path|expected_status"): #CHECKS="health|/health|200 #market-pulse|/api/v1/analytics/market-pulse|200"