Class: Stubby::Extensions::HTTP::HTTPSApp
- Defined in:
- lib/stubby/extensions/http.rb
Overview
TODO: get SSL support running. Self signed cert
Class Method Summary collapse
Methods inherited from HTTPApp
Class Method Details
.port ⇒ Object
164 165 166 |
# File 'lib/stubby/extensions/http.rb', line 164 def port 443 end |
.run!(session) ⇒ Object
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/stubby/extensions/http.rb', line 168 def run!(session) set :bind, STUBBY_MASTER set :port, port set :stubby_session, session Rack::Handler::Thin.run(self, { :Host => STUBBY_MASTER, :Port => 443 }) do |server| server.ssl = true server. = { :verify_peer => false } end rescue => e puts "#{e.inspect}" end |