Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
|
@timwaweru sorry for the slow response (and thanks for the nudge @shawndewet!). Been a bit busy on other projects so have not been replying as quickly as I'd like. As @shawndewet says, Kamal currently only provides automatic TSL for individual hosts, and it doesn't currently load balance traffic between those hosts. So for a setup like you describe, you'd need to handle load balancing and TLS yourself. Most people doing this now are using either cloud load balancers (like you mentioned) or they use another reverse proxy as the load balancer (something like Caddy, for example) which then routes to the Kamal-deployed app servers. We will be adding load balancing support to Kamal shortly. Kamal Proxy supports it now (essentially you supply multiple On-demand TLS certs are also being worked on in #63, which will automate the provisioning of new certificates if you need them on a per-tenant basis. When those both are ready I think it'll provide exactly what you need. But until then I'm afraid you'll need to handle it in a layer in front, and then either use custom certs on the app servers, or route plain HTTP between your load balancer and the app servers. (Most people do the latter). I'm curious what problem you ran into when routing Cloudflare to port 80, by the way? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Help needed: Load balancing Kamal deployment across multiple servers with SSL termination
I'm deploying an app to multiple EC2 servers using Kamal:
Kamal requires SSL to be disabled for multi-server deployments due to the limitation:
Current setup:
api.example.com(A record)api.client.com(CNAME pointing to main domain)Problem:
I need to load balance traffic between the two servers with SSL termination at the load balancer level (AWS ALB/NLB or Cloudflare).
Issues I'm facing:
AWS Load Balancer approach:
Cloudflare approach:
Question: What's the best way to set up load balancing with SSL termination for this multi-tenant architecture while keeping it scalable (avoiding manual certificate management)?
Beta Was this translation helpful? Give feedback.
All reactions