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
13 lines
356 B
Ruby
13 lines
356 B
Ruby
require 'sinatra/base'
|
|
require './asxpio.rb'
|
|
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)
|
|
}
|