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
12
config.ru
12
config.ru
|
|
@ -1,3 +1,13 @@
|
|||
require 'sinatra/base'
|
||||
require './asxpio.rb'
|
||||
run AsxpioWeb.new
|
||||
require './bingo_web.rb'
|
||||
|
||||
# One process, two sites: BINGO_HOST gets the bingo, everything else asxp.io.
|
||||
asxpio = AsxpioWeb.new
|
||||
bingo = BingoWeb.new
|
||||
bingo_host = ENV['BINGO_HOST']
|
||||
|
||||
run lambda { |env|
|
||||
host = Rack::Request.new(env).host
|
||||
(bingo_host && host == bingo_host ? bingo : asxpio).call(env)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue