Class: App

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/app.rb

Class Method Summary collapse

Class Method Details

.run!Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/app.rb', line 6

def self.run!
  rack_handler_config = {}

  ssl_options = {
      :private_key_file => Bazuro::CONFIG[:ssl][:key],
      :cert_chain_file => Bazuro::CONFIG[:ssl][:crt],
      :verify_peer => false,
  }

  Rack::Handler::Thin.run(self, rack_handler_config) do |server|
    server.ssl = true
    server.ssl_options = ssl_options
  end
end