class Rails::Server
Public Instance Methods
default_options()
click to toggle source
Calls superclass method
# File lib/generators/ssl_mode/templates/sslrails.rb, line 9 def default_options super.merge({ :Port => 3001, :environment => (ENV['RAILS_ENV'] || "development").dup, :daemonize => false, :debugger => false, :pid => File.expand_path("tmp/pids/server.pid"), :config => File.expand_path("config.ru"), :SSLEnable => true, :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE, :SSLPrivateKey => OpenSSL::PKey::RSA.new( File.open("certs/server.key").read), :SSLCertificate => OpenSSL::X509::Certificate.new( File.open("certs/server.crt").read), :SSLCertName => [["CN", "localhost.ssl"]], }) end