Skip to content
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

Kamal guide #9

Open
34code opened this issue Mar 16, 2024 · 7 comments
Open

Kamal guide #9

34code opened this issue Mar 16, 2024 · 7 comments

Comments

@34code
Copy link

34code commented Mar 16, 2024

Thanks for building this!

I could definitely use SSL support.. Just wanted to understand how to use with kamal for deployment? I'm trying to simply copy a ubuntu generated thrust into my dockerfile via ./bin/rails directory.

Doesn't seem to work.

@kevinmcconnell
Copy link
Collaborator

Hi @34code, unfortunately this isn't straightforward right now, because applications deployed with Kamal are served through another proxy (using Traefik). That proxy terminates the connection, and forwards plain HTTP traffic into the container where Thruster is running. In that configuration, Thruster doesn't have a way to handle the HTTPS traffic.

We're working on some ways to make this simpler on the Kamal side.

But in the meantime, one option would be to have Traefik handle the SSL termination. There's a discussion here that might have what you need to do that.

You can still run Thruster in that setup if its other features are useful to you (like the caching, X-Sendfile, etc).

@34code
Copy link
Author

34code commented Mar 20, 2024

Thanks for pointing me to that discussion!

@strzibny
Copy link

strzibny commented May 8, 2024

I just deployed Thruster with Kamal. Simply keep SSL with Traefik like https://nts.strzibny.name/deploying-rails-single-server-kamal/ and use Thruster for assets (no config there). That's the best/cleanest way right now.

@34code
Copy link
Author

34code commented May 10, 2024

https://nts.strzibny.name/running-thruster-rails-kamal/

I used this one above ^^ and the previous guidance to do SSL with letsencrypt and traefik

@34code
Copy link
Author

34code commented May 11, 2024

Would be cool if thruster supported ssl with letsencrypt directly someday.. as that would be one less network hop from traefik to thruster..

Can live with current setup until then 😀

@34code
Copy link
Author

34code commented May 11, 2024

Turns out it does (thruster ssl support) and I just didn't read about it.. wonder how it plays with default kamal which has zero downtime deploys with traefik

@strzibny
Copy link

Yes, it does support that, but it's designed for standalone use (like in ONCE products) not with Kamal in mind. I believe this will be somehow solved in Kamal 2 with a new proxy or update to Thruster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants