1. Caddy version: 2.6.2
2. How I installed, and run Caddy:
Fresh install of Ubuntu 22.04 server and followed the guide
a. System environment:
Ubuntu 22.04 VM
d. My complete Caddy config:
snipeit2.grantbulldogs.org {
reverse_proxy 172.16.8.190 {
trusted_proxies 172.16.8.0/22
header_up X-Real-IP {remote}
header_down Strict-Transport-Security max-age=31536000
}
}
3. The problem I’m having:
Getting an Err_SSL_Protocol_Error
I know SnipeIT wants to be made aware of the reverse_proxy (they say use X-Forwarded-Proto on their site). I am having trouble figuring out how to do this as this is the first time I’ve run into this.
4. Error messages and/or full log output:
Getting an Err_SSL_Protocol_Error
5. What I already tried:
Been messing around by using the head_up command and the commands currently in my CaddyFile, but no dice. I’m not super familiar with doing this, so I don’t know what else to try.
I’ve also made sure to add the IP for my Caddy server as a trusted proxy on my SnipeIT .env file.
6. Links to relevant resources:
SnipeIT’s page for reverse-proxies