1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test/config/ssl_config.rb
Patrik Ragnarsson be5d3de002
Use correct paths in test/config/ssl_config.rb (#2750)
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.
2021-11-06 12:36:39 +01:00

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