X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f6911c2c1b39de18b136a6cf9566dba3089b33c2..75fbb4eabf0da2fceebf8196bec769e4cbc6547b:/services/api/script/rails diff --git a/services/api/script/rails b/services/api/script/rails index 88627f559d..14dcc9dd73 100755 --- a/services/api/script/rails +++ b/services/api/script/rails @@ -4,7 +4,7 @@ ##### SSL - ward, 2012-10-15 require 'rubygems' -require 'rails/commands/server' +require 'rails/command' require 'rack' require 'webrick' require 'webrick/https' @@ -13,7 +13,7 @@ module Rails class Server < ::Rack::Server def default_options super.merge({ - :Port => 3001, + :Port => 3030, :environment => (ENV['RAILS_ENV'] || "development").dup, :daemonize => false, :debugger => false, @@ -21,15 +21,11 @@ module Rails :config => File.expand_path("config.ru"), :SSLEnable => true, :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE, - :SSLPrivateKey => OpenSSL::PKey::RSA.new( - File.open("config/api.clinicalfuture.com.key.pem").read), - :SSLCertificate => OpenSSL::X509::Certificate.new( - File.open("config/api.clinicalfuture.com.crt.pem").read), - :SSLCertName => [["CN", WEBrick::Utils::getservername]] + :SSLCertName => [["CN", "#{WEBrick::Utils::getservername} #{Time.now().to_s}"]] }) end end -end +end ######### /SSL