bingo: move to datacenterbingo.xyz
The card gets its own domain instead of a subdomain of the IE site. www. is routed to the same container and 301-redirected to the apex in config.ru, so there is one canonical host for links and the cert. Assisted-by: Claude:opus-5
This commit is contained in:
parent
903dc17a75
commit
90e1bbc9c5
4 changed files with 9 additions and 5 deletions
|
|
@ -8,6 +8,10 @@ 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)
|
||||
req = Rack::Request.new(env)
|
||||
if bingo_host && req.host == "www.#{bingo_host}"
|
||||
[301, { 'location' => "https://#{bingo_host}#{req.fullpath}" }, []]
|
||||
else
|
||||
(bingo_host && req.host == bingo_host ? bingo : asxpio).call(env)
|
||||
end
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue