mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00

Make `puma -C test/config/ssl_config.rb` works out-of-the-box. Looks like tests haven't complained because `test_ssl_configuration_from_DSL` doesn't actually start Puma.
13 lines
428 B
Ruby
13 lines
428 B
Ruby
key = File.expand_path "../../../examples/puma/puma_keypair.pem", __FILE__
|
|
cert = File.expand_path "../../../examples/puma/cert_puma.pem", __FILE__
|
|
ca = File.expand_path "../../../examples/puma/client-certs/ca.crt", __FILE__
|
|
|
|
ssl_bind "0.0.0.0", 9292, :cert => cert, :key => key, :verify_mode => "peer", :ca => ca
|
|
|
|
app do |env|
|
|
[200, {}, ["embedded app"]]
|
|
end
|
|
|
|
lowlevel_error_handler do |err|
|
|
[200, {}, ["error page"]]
|
|
end
|