gonic icon indicating copy to clipboard operation
gonic copied to clipboard

Caddy reverse proxy config

Open ajmxco opened this issue 1 year ago • 0 comments

Reverse proxy with Caddy works great using these directions:

https://github.com/sentriz/gonic/wiki/reverse-proxy

However Caddy logs error messages - "aborting with incomplete response: write tcp ... connection reset by peer" if the client doesn't have a trailing backslash at the end of the server config.

In the Caddy config I added the redir line and fixed the problem on the server-side. Might be worth mentioning this in the documentation...

redir /gonic /gonic/ handle_path /gonic* { reverse_proxy localhost:4747 }

ajmxco avatar Oct 19 '25 13:10 ajmxco