Hello, I would like to get example Caddyfile for MongoDB reverse proxy.
I host mongo db server on IP:27017 but I want to get it to mongo.mydomain.com using Caddy reverse proxy.
This is my config, when I go to the subdomain I can see , but connecting to mongodb gives connection timeout error.
MongoDB doesn’t run its communication protocol over HTTP. It operates at TCP, a lower level than HTTP. For that, you’ll need to use the layer4 app.