Remix.run Logo
KomoD 2 hours ago

Ever since I started using Caddy, doing that has been soooo easy.

Download the binary, make a Caddyfile

  myservice.example.com {
   basic_auth {
    admin some_password_hash_here
   }
   reverse_proxy :3000
  }
And then just "./caddy start"
gizzlon 19 minutes ago | parent | next [-]

Caddy can also proxy to unix sockets !

Natfan 2 hours ago | parent | prev [-]

does this work with multiple caddy servers? ie can you bind multiple caddy servers to port 80/443?

KomoD an hour ago | parent | next [-]

You can have multiple configs in a single Caddyfile and reload when you make changes, and it'll just route them as you wish, e.g.

domain1.com -> service on port 1234

domain2.com -> service on port 5678

domain3.com -> serving a file directory.

And then you still access domain1.com, domain2.com, domain3.com on port 80/443

tcoff91 an hour ago | parent | prev [-]

You set up multiple services behind a single caddy reverse proxy