MongoDb reverse proxy

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 using Caddy reverse proxy.
This is my config, when I go to the subdomain I can see image, but connecting to mongodb gives connection timeout error. {
reverse_proxy IP:27017

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.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.