All checks were successful
CI / changes (push) Successful in 13s
CI / changes (pull_request) Successful in 12s
CI / frontend-tests (push) Successful in 53s
CI / openapi-codegen-check (push) Successful in 1m58s
CI / frontend-tests (pull_request) Successful in 47s
CI / openapi-codegen-check (pull_request) Successful in 1m50s
CI / backend-tests (push) Successful in 8m54s
CI / backend-tests (pull_request) Successful in 8m45s
Deploy / changes (push) Successful in 6s
Deploy / build-backend (push) Successful in 2m50s
Deploy / build-frontend (push) Successful in 3m11s
Deploy / build-worker (push) Successful in 4m38s
Deploy / deploy (push) Successful in 2m1s
#68: pytest-cov + [tool.coverage] fail_under=65 (baseline 71%), backend-tests --cov + xml. #69: openapi-codegen-check job (dump app.openapi() → openapi-typescript → git diff). Job использует node_modules-pinned openapi-typescript/prettier (НЕ npx --yes latest — иначе version-mismatch ложный diff). + regenerated api-types.ts из СВЕЖЕГО main openapi (8288 строк, включая #73 /freshness — синхронен). #75: Uptime Kuma isolated stack + status.gendsgn.ru Caddy + external Telegram watchdog. #77: no change — build cache достаточен. Closes #68 Closes #69 Closes #75 Closes #77
28 lines
1.2 KiB
Text
28 lines
1.2 KiB
Text
# 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<TOKEN>/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"
|