-
|
I'm working on a multi-tenant Rails app where tenants can choose to either use the provided subdomain, or bring their custom domain name. From looking at #1531, it's either a custom cert, or Let's Encrypt. Not both. Or am I wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
|
Yes, I believe so as well. This is a limit in https://github.com/basecamp/kamal-proxy, so if they add it kamal would possibly be able to support it as well. I've worked around this by running something like This isn't great as there is a short period during a deploy that the someotherdomain.com might end up on an old release of app-web or not even that, but it's what we have to work with. Another option for you would be to have 2 deploys of your app on the same server so they can still share services like a database. One deploy with custom cert and one with Let's Encrypt certs. |
Beta Was this translation helpful? Give feedback.
-
|
I had good results sticking Caddy in front of kamal-proxy. Very little configuration required and it just requires you add an endpoint in your app so that Caddy can probe if it should generate a cert for a particular hostname or not. Let me know if you want me to put the config here. It's just an accessory. |
Beta Was this translation helpful? Give feedback.
Yes, I believe so as well. This is a limit in https://github.com/basecamp/kamal-proxy, so if they add it kamal would possibly be able to support it as well.
I've worked around this by running something like
docker exec kamal-proxy kamal-proxy deploy someotherdomain --target="app-web" --tls --host="someotherdomain.com"after adding a docker network alias in my config:This isn't great as there is a short period during a deploy that the someotherdomain.com might end up on an old release of app-web or not even that, but it's what we have to work with.
Another option for you would be to have 2 deploys of your app on the same server so they can still …