authz for /whoops.

This commit is contained in:
Andrea Dell'Amico 2021-11-04 17:23:33 +01:00
parent a28183ae7e
commit 17a5b855b6
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 15 additions and 0 deletions

View File

@ -167,6 +167,21 @@ server {
proxy_pass http://_inception-server;
}
location /whoops.* {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection ""; # Clear for keepalive
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Original-URI $request_uri;
proxy_set_header Authorization "Bearer $auth_token";
proxy_set_header remote_user "$remote_user";
proxy_pass http://_inception-server;
}
location /sm/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;