forward-domain icon indicating copy to clipboard operation
forward-domain copied to clipboard

Is it possible to set this up with Docker (Kamal) ?

Open ronald2wing opened this issue 5 months ago • 5 comments

https://teleport.purrtal.com/

I was trying to build my own PHP app to forward domains, but it appears that Nginx doesn't allow proxying other domains, or I need to perform some configuration that I am not familiar with. Anyway, I failed, so I want to deploy this app with Docker for automation. Since Docker has its own reverse proxy, I am not sure Docker will accept other forward domains.

ronald2wing avatar Jul 28 '25 21:07 ronald2wing

I think docker should be working. Regular port forwarding should works as long it doesn't strip Host HTTP header.

willnode avatar Jul 30 '25 10:07 willnode

I don't think this will work with Kamal because you have to set the host domain https://kamal-deploy.org/docs/configuration/proxy/ so the docker will not reverse proxy when you connect with a new domain.

ronald2wing avatar Jul 30 '25 13:07 ronald2wing

It is expected that the proxy server must support proxy-ing HTTPS as is, for example NGINX has stream plugin for it and it's already used by r.forwarddomain.net: https://github.com/willnode/forward-domain/blob/main/HOSTING.md#nginx--stream-plugin

willnode avatar Sep 09 '25 06:09 willnode

I'll keep this issue open until someone can provide equivalent for Kamal

willnode avatar Sep 09 '25 06:09 willnode

I'll keep this issue open until someone can provide equivalent for Kamal

Wow. That's so nice of you. I was going to close it because Kamal's issue https://github.com/basecamp/kamal/issues/1617 said it is not possible.

ronald2wing avatar Sep 09 '25 13:09 ronald2wing