bingo: serve bingo.asxp.io too, credit asxp.io in footer
datacenterbingo.xyz is not in the .xyz zone yet, while bingo.asxp.io already resolves. Serve the card on both (BINGO_ALT_HOST) so it is reachable now; canonical and hreflang links keep pointing at the .xyz domain. Footer gets a copyright line linking back to asxp.io. Assisted-by: Claude:opus-5
This commit is contained in:
parent
90e1bbc9c5
commit
cd04b01e57
7 changed files with 22 additions and 9 deletions
|
|
@ -2,13 +2,15 @@
|
|||
# AsxpioWeb (config.ru dispatches by Host). Read-only: no session, no CSRF.
|
||||
# Content is managed from asxp.io/admin/bingo (lib/bingo_admin.rb).
|
||||
class BingoWeb < Sinatra::Base
|
||||
HOSTS = [ENV['BINGO_HOST'], ENV['BINGO_ALT_HOST']].compact.reject(&:empty?).freeze
|
||||
|
||||
configure do
|
||||
set :root, $root
|
||||
set :views, File.join($root, 'views', 'bingo')
|
||||
set :erb, layout: :layout, escape_html: true
|
||||
set :show_exceptions, $env == 'development'
|
||||
set :host_authorization,
|
||||
{ permitted_hosts: $env == 'production' && ENV['BINGO_HOST'] ? [ENV['BINGO_HOST']] : [] }
|
||||
{ permitted_hosts: $env == 'production' ? HOSTS : [] }
|
||||
end
|
||||
|
||||
helpers do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue