News for hackers. Stuff that matters.
Re:Caddy – a modern web server (vs. Nginx) by mwpmaybe on Monday January 09, 2017 @07:19PM (#13361331)
I think you want header_upstream instead of proxy_header, at least in newer versions of Caddy, and the transparent[0] preset sets Host, X-Forwarded-For, and X-Forwarded-Proto for you!

  proxy / 127.0.0.1:8080 {
    except /favicon.ico /robots.txt /assets /plainpages /staticstuff /test1
    transparent
  }
0. https://caddyserver.com/docs/proxy
Re:Caddy – a modern web server (vs. Nginx) by kmeade on Monday January 09, 2017 @09:01PM (#13361904)
Thanks! I didn't notice transparent. I added the proxy_header based on documented requirements of the 2nd server.