Merge pull request #112391 from serokell/zhenya/oauth2-proxy-multiple-hosts

nixos/oauth2_proxy_nginx: specify hostname in X-Auth-Request-Redirect
This commit is contained in:
Martin Weinelt 2021-02-09 02:37:03 +01:00 committed by GitHub
commit 2b454fcefd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ in
proxyPass = cfg.proxy;
extraConfig = ''
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Auth-Request-Redirect $request_uri;
proxy_set_header X-Auth-Request-Redirect $scheme://$host$request_uri;
'';
};
locations."/oauth2/auth" = {