Add proper port and host authorization.

This commit is contained in:
2026-10-19 11:55:44 +01:00
parent 0c2cce6cf6
commit 7055328f5e
+3
View File
@@ -1,5 +1,8 @@
require 'sinatra' require 'sinatra'
set :port, ENV.fetch("PORT", 5162)
set :bind, '0.0.0.0'
set :host_authorization, { permitted_hosts: ["newtab.syedm.dev"] }
set :public_folder, File.expand_path('public', __dir__) set :public_folder, File.expand_path('public', __dir__)
get '/' do get '/' do