top | item 36675554

(no title)

tandav | 2 years ago

Side question: Does anyone know a simple caddy-like solution, but for non-HTTP traffic? For example, I want automatic SSL certificates for redis, mongodb, postgresql.

discuss

order

mthoms|2 years 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|2 years 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.

avtar|2 years ago

stunnel should work for all of the above