bingo: serve datacenter bingo on bingo.asxp.io
Add a second public site to the same process: a 5x5 card of the 25 largest Russian datacenters where a cell is crossed out once an incident with a public source is recorded (Yandex Sasovo and Kaluga drone strikes on 2026-10-08/09 are seeded). config.ru dispatches by Host, so it rides the existing container, DB and bucket instead of a new deploy. The card is localized ru/en/uk with per-locale columns falling back to ru. Content is managed from /admin/bingo on asxp.io, reusing AdminAuth and CSRF. Photos go to the existing bucket under bingo/ and are proxied by the app, so the bucket stays private and storage needs no change. The seed data was fact-checked against operator sites and press on 2026-10-10; several entries in the original list were wrong or vague. Assisted-by: Claude:opus-5
This commit is contained in:
parent
1f059dc2f6
commit
bdb3682e18
19 changed files with 1428 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ require_relative 'lib/rate_limit'
|
|||
require_relative 'lib/db'
|
||||
require_relative 'lib/admin_auth'
|
||||
require_relative 'lib/s3'
|
||||
require_relative 'lib/bingo_admin'
|
||||
|
||||
# Invoice model needs a live Sequel connection at class-definition time.
|
||||
if ENV['DATABASE_URL']
|
||||
|
|
@ -34,6 +35,8 @@ if ENV['DATABASE_URL']
|
|||
require_relative 'lib/crypto_qr'
|
||||
require_relative 'lib/gel_rate'
|
||||
require_relative 'lib/invoice_pdf'
|
||||
require_relative 'lib/bingo'
|
||||
Bingo.seed!
|
||||
else
|
||||
$logger.warn('DATABASE_URL not set — invoicing disabled')
|
||||
end
|
||||
|
|
@ -61,6 +64,7 @@ class AsxpioWeb < Sinatra::Base
|
|||
|
||||
use Rack::Protection::AuthenticityToken
|
||||
use AdminAuth
|
||||
register BingoAdmin
|
||||
|
||||
Mailer.configure!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue