Skip to content

Conversation

@chtitux
Copy link
Contributor

@chtitux chtitux commented Nov 10, 2016

It then allow rails to start puma and pass the TLS/SSL configuration:

bin/rails server puma -b "ssl://0.0.0.0?key=/path/to/example.key&cert=/path/to/example.crt"

It then allow rails to start puma and pass the TLS/SSL configuration:
~~~
bin/rails server puma -b "ssl://0.0.0.0?key=/path/to/example.key&cert=/path/to/example.crt"
~~~
@nateberkopec nateberkopec modified the milestone: 3.7.0 Nov 23, 2016
@chtitux
Copy link
Contributor Author

chtitux commented Dec 5, 2016

@nateberkopec Should I add some lines to my patch? Or everything is fine for now?


if host && (host[0,1] == '.' || host[0,1] == '/')
c.bind "unix://#{host}"
elsif host && host =~ /^ssl:\/\//
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps not use a regular expression, but a String instance method?

elsif host && host.start_with?('ssl://')

@nateberkopec nateberkopec merged commit e083224 into puma:master Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants