Comment on Help? Caddy reverse proxy

gibdos@lemmy.world ⁨3⁩ ⁨weeks⁩ ago

You need to point your sub-domain in the Caddyfile to your designated local port. So just add an entry like this to your Caddyfile

sub.yourdomain.com {
  reverse_proxy XXX.XXX.XXX.XXX:PORT {
   header_up X-Real-IP {remote_host}
  }
  encode zstd gzip
}```

Replace XXX with your public IP and PORT with the local port in your docker container / compose.

source
Sort:hotnewtop