-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for custom SSL certificate #969
base: main
Are you sure you want to change the base?
Conversation
834797a
to
281e88f
Compare
I'm a newbie to kamal (and docker) and was wondering what's the recommended way to get those custom PEM files on server. Copy using kamal+Dockerfile or do it manually ? Maybe better alternative would be to load the values via ENV variables (given kamal-proxy could support it) ? |
The easiest way would be to use
TODO: Add |
Cool, setting it up via |
@djmb to follow up on the thread in kamal-proxy, here is the documentation update + support for the recent custom TLS cert changes. |
Is it possible to specify a client certificate too? I need this in order to enable CloudFlare's Authenticated Origin Pulls |
With this change, would it be possible to remove the Context: I'm looking for a way to have end-to-end in-transit encryption in a regulated environment that requires TLS between the load balancer and server node. I'd also like to be able to use multiple app servers. By providing my own cert to kamal-proxy, I was thinking I should be able to have the load balancer terminate SSL and then re-encrypt the traffic to kamal-proxy, which would use my supplied cert. wdyt? Thank you! |
Yep, that's exactly how it would work with custom certificates, and it removes the limitation of one host behind the load balancer. |
That's great! Would kamal/lib/kamal/configuration/role.rb Line 152 in 6073681
Thank you! |
Great catch, I missed this change in the upstream :-) Added a commit to this MR |
I have used with wildcard domain and multi hosts, Works fine. Please merge this PR. |
Following the change in kamal-proxy, this MR introduces a configuration option to load custom SSL certificate and the corresponding private key from disk:
Documentation preview: