I use traefik as reverse proxy for warpgate
traefik pass headers Host X-Forwarded-Proto to warpgate. For test headers i replace warpgate to whoami and see this.
Hostname: b3b6d276c624
IP: 127.0.0.1
IP: 172.17.0.2
RemoteAddr: 172.16.11.10:39754
GET / HTTP/1.1
Host: wg.host.me
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.5
Cookie: ***
Dnt: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
Sec-Gpc: 1
Te: trailers
Uber-Trace-Id: 6f7bcaeb7c5d46db:38dadea1baa77b35:27ac223ed317cf47:1
Upgrade-Insecure-Requests: 1
X-Forwarded-For: ****
X-Forwarded-Host: wg.host.me
X-Forwarded-Port: 443
X-Forwarded-Proto: https
X-Forwarded-Server: 6681ce2d84dd
X-Real-Ip: ***
request contains correct headers
but redirect URL created with port 8888 https://wg.host.me:8888/@warpgate/api/sso/return?code=*&scope=openid+email&state=* instead https://wg.host.me/@warpgate/api/sso/return?code=*&scope=openid+email&state=*
I use traefik as reverse proxy for warpgate
traefik pass headers
HostX-Forwarded-Prototo warpgate. For test headers i replace warpgate to whoami and see this.request contains correct headers
but redirect URL created with port 8888
https://wg.host.me:8888/@warpgate/api/sso/return?code=*&scope=openid+email&state=*insteadhttps://wg.host.me/@warpgate/api/sso/return?code=*&scope=openid+email&state=*