Replies: 2 comments 2 replies
|
I think you can safely turn ssl off in Rails and in kamal-proxy. I usually use the following config: Then let Cloudflare handle the SSL for you. You need to pick a particular SSL mode in Cloudflare though and it won't be 'Full' because it'll be talking to your proxy via http. |
2 replies
|
would love to read more about the best way to accomplish this. I'm currently in the same situation and wondering if using 'flexible' mode in Cloudflare combined with the config changes @brendon mentioned would be a good way to go security-wise. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm hosting a demo Rails 8 application on an old PC at home and using Cloudflare tunnel to expose it publicly without port forwarding. My understanding is that the tunnel already acts as a reverse proxy. Normally, you'd point a domain to a specific IP and port where the application is running. For example, I have FreshRSS running on a 8300 port and expose it by mapping my domain to
http://192.168.1.97:8300For multiple apps deployed with Kamal 2 on a single box, I point all domains to kamal_proxy instead of the apps directly, and let the proxy route requests. Right now, I have it working by pointing all domains to
http://192.168.1.97:80, with SSL terminated at Cloudflare Tunnel. My Kamal proxy config looks like this:I’ve tried enabling SSL on kamal_proxy (using Let’s Encrypt, Cloudflare origin certs, etc.), but haven’t found a working configuration.
Questions:
Thanks for your help
All reactions