Replies: 8 comments 3 replies
-
In which port is Hetzner LB listening on? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
deploy.yml: # Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption.
proxy:
ssl: true
host: api.foobar.com
# Proxy connects to your container on port 80 by default.
app_port: 3000 # if you use thruster remove this line, if you don't use thruster set this line You have then to setup DNS records with proxy toggle checked (A with ipv4 and AAAA with the ipv6 without the /64) Then commit your changes, and kamal deploy. |
Beta Was this translation helpful? Give feedback.
-
This config wouldnt work as SSL: True only works if you are deploying to a single server, in my case I am deploying to 3 servers, and then all 3 are under a single hertzner LB |
Beta Was this translation helpful? Give feedback.
-
I'd try removing the proxy section as instructed: |
Beta Was this translation helpful? Give feedback.
-
only thing that seems to work is to set SSL as flexible on CF which isnt very secure |
Beta Was this translation helpful? Give feedback.
-
I had the same issue. I solved it by:
You can get the certificate and private key from Cloudflare by going to “SSL/TLS > Origin server”. The certificate and private key can then be used by the load balancer. |
Beta Was this translation helpful? Give feedback.
-
Here's where DHH explains. |
Beta Was this translation helpful? Give feedback.
-
I have created a LB on Hertzner and added both servers, I have also added a proxied A record pointing to the LB server on cloudflare however I get a website down error
Although visiting the server IP for both the LB and Hosts works without issues
Beta Was this translation helpful? Give feedback.
All reactions