gonic
gonic copied to clipboard
Caddy reverse proxy config
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 }