4 ms·
Caddy can act as a proxy for those services. It's ridiculously easy to set-up. mongo.mydomain.com { reverse_proxy 127.0.0.1:27017 }
by mthoms 3y ago
Caddy can act as a proxy for those services. It's ridiculously easy to set-up.
mongo.mydomain.com {
reverse_proxy 127.0.0.1:27017
}
- selcuka 3y ago> but for non-HTTP traffic? Doesn't this only work for HTTP too? It may work with MongoDB because it talks HTTP through TCP 27017, but PostgreSQL, for example, has a proprietary protocol on TCP 5432.
- 8organicbits 3y agoI think you need the layer4 module to get this working. https://caddyserver.com/docs/modules/layer4 https://caddyserver.com/docs/modules/layer4