Add proper port and host authorization.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user