From 70f1734c5d97c276d45b09b4cc92bd8d7ffd3309 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Sat, 10 Oct 2026 06:07:37 +0400 Subject: [PATCH] bingo: stop serving bingo.asxp.io datacenterbingo.xyz resolves now, so the stopgap second hostname is no longer needed. Drop it from the Traefik rule and the deploy env; the app-side BINGO_ALT_HOST support stays but is unset. Assisted-by: Claude:opus-5 --- .forgejo/workflows/deploy.yaml | 1 - CLAUDE.md | 2 +- docker-compose.yml | 5 ++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 1b469e0..2bc2ed3 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -140,7 +140,6 @@ jobs: LTC_ADDRESS=${LTC_ADDRESS} CRYPTO_ADDRESSES=${CRYPTO_ADDRESSES} BINGO_HOST=datacenterbingo.xyz - BINGO_ALT_HOST=bingo.asxp.io EOF chmod 600 /opt/asxpio/.env diff --git a/CLAUDE.md b/CLAUDE.md index 797c915..8753da4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -117,7 +117,7 @@ Admin pages use a shared dark palette extended in `public/style.css` (search for ## Datacenter bingo -A second public site served from the **same process** on `BINGO_HOST` (`datacenterbingo.xyz`, `www.` redirects to it; `BINGO_ALT_HOST=bingo.asxp.io` serves the same card; non-secret config in `deploy.yaml` → `.env` → Traefik router `asxpio-bingo` via compose interpolation). `config.ru` dispatches by Host: `BINGO_HOST` → `BingoWeb` (`bingo_web.rb`), everything else → `AsxpioWeb`. Unset `BINGO_HOST` = bingo unreachable. +A second public site served from the **same process** on `BINGO_HOST` (`datacenterbingo.xyz`, `www.` redirects to it; optional `BINGO_ALT_HOST` serves the same card on a second hostname (unused; it also needs adding to the Traefik rule); non-secret config in `deploy.yaml` → `.env` → Traefik router `asxpio-bingo` via compose interpolation). `config.ru` dispatches by Host: `BINGO_HOST` → `BingoWeb` (`bingo_web.rb`), everything else → `AsxpioWeb`. Unset `BINGO_HOST` = bingo unreachable. - 5×5 card of the 25 largest Russian datacenters; a cell is crossed out when an incident (with a public source) is recorded. Rows/columns/diagonals → BINGO banner. - Locales `ru` / `en` / `uk` at `/ru`, `/en`, `/uk`; `/` redirects by `Accept-Language` (fallback `en`). Per-locale DB columns (`name_*`, `city_*`, `title_*`); `ru` is required, others fall back to it. UI strings in `Bingo::T` (`lib/bingo.rb`). diff --git a/docker-compose.yml b/docker-compose.yml index 8ee718f..9a22d6a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,9 +19,8 @@ services: - "traefik.http.routers.asxpio.service=asxpio" - "traefik.http.services.asxpio.loadbalancer.server.port=3000" # Datacenter bingo: same container, routed by Host in config.ru. - # BINGO_HOST / BINGO_ALT_HOST are interpolated from /opt/asxpio/.env - # (written by deploy). - - "traefik.http.routers.asxpio-bingo.rule=Host(`${BINGO_HOST}`) || Host(`www.${BINGO_HOST}`) || Host(`${BINGO_ALT_HOST}`)" + # BINGO_HOST is interpolated from /opt/asxpio/.env (written by deploy). + - "traefik.http.routers.asxpio-bingo.rule=Host(`${BINGO_HOST}`) || Host(`www.${BINGO_HOST}`)" - "traefik.http.routers.asxpio-bingo.entrypoints=websecure" - "traefik.http.routers.asxpio-bingo.tls=true" - "traefik.http.routers.asxpio-bingo.tls.certresolver=letsencrypt"