Evan Phoenix
|
33e0fa9999
|
Manage nested configuration better
|
2016-02-07 14:51:54 -08:00 |
|
Liam Sean Brady
|
4673f790b4
|
Fix typos (it's -> its) in events.rb and server.rb
|
2015-10-17 19:28:21 +01:00 |
|
Paul Anunda
|
42f4faaf7b
|
typo fix: occured -> occurred
|
2015-07-15 09:59:34 -05:00 |
|
Julian Langschaedel
|
e8d25b30f3
|
ssl: Add Client Side Certificate Auth
Add Client Side Certificate Auth feature and handling to puma's MiniSSL. Also exposes SSL errors to puma/apps.
compatibility notes: MRI only
shell example:
puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert&ca=path_to_ca&verify_mode=force_peer'
code example: (examples/client_side_ssl)
app = proc {|env| p env['puma.peercert']; [200, {}, ["hey"]] }
events = SSLEvents.new($stdout, $stderr)
server = Puma::Server.new(app, events)
admin_context = Puma::MiniSSL::Context.new
admin_context.key = KEY_PATH
admin_context.cert = CERT_PATH
admin_context.ca = CA_CERT_PATH
admin_context.verify_mode = Puma::MiniSSL::VERIFY_PEER | Puma::MiniSSL::VERIFY_FAIL_IF_NO_PEER_CERT
server.add_ssl_listener("0.0.0.0", ADMIN_PORT, admin_context)
server.min_threads = MIN_THREADS
server.max_threads = MAX_THREADS
server.persistent_timeout = IDLE_TIMEOUT
server.run.join
additional credits: Andy Alness <andy.alness@gmail.com>
|
2015-06-06 23:15:00 +02:00 |
|
Edgars Beigarts
|
93e13af665
|
Do not reset cli events when in cluster mode
|
2015-01-15 14:56:48 +02:00 |
|
Evan Phoenix
|
b24920d3ed
|
Add hook's and wire up a state hook
|
2013-09-13 09:56:39 -07:00 |
|
Evan Phoenix
|
816c67d2e9
|
Add ability to drain accept socket on shutdown
|
2013-07-15 14:29:10 -07:00 |
|
Evan Phoenix
|
662852ce4f
|
Pass Events around more, add Events#on_booted
|
2013-07-05 16:54:15 -07:00 |
|
Evan Phoenix
|
111cc1da74
|
Merge branch 'master' into just-dash-w
Conflicts:
lib/puma/cli.rb
|
2012-09-08 23:05:36 -07:00 |
|
Evan Phoenix
|
810144e77f
|
Close kept alive sockets on restart. Fixes #144
|
2012-09-02 23:33:09 -04:00 |
|
Evan Phoenix
|
221a26a20f
|
Add restarting in cluster mode
|
2012-08-03 20:53:14 -06:00 |
|
Evan Phoenix
|
dad69f5cf9
|
Spike of cluster mode
|
2012-08-01 11:11:27 -06:00 |
|
Santiago Pastorino
|
60dbdad4e9
|
Delegate cli log and error to events
|
2012-07-02 19:09:35 -03:00 |
|
Evan Phoenix
|
b2016c68bf
|
Add native support for ssl. Fixes #28
|
2012-01-13 16:29:50 -08:00 |
|
Evan Phoenix
|
b18cfae4b1
|
Write a bunch of documentation
|
2011-12-01 15:23:14 -08:00 |
|
Evan Phoenix
|
ad0594e108
|
Add missing Events class
|
2011-09-30 10:29:37 -05:00 |
|