rewrite broken authelia consent param

This commit is contained in:
Elizabeth Hunt 2024-02-27 16:07:55 -05:00
parent 272017b9d7
commit e4c3a05055
2 changed files with 18 additions and 0 deletions

View File

@ -29,4 +29,17 @@ server {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
}
location /.well-known/openid-configuration {
proxy_pass http://127.0.0.1:24734/index.php/apps/openidconnect/config;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $server_name;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
}
}

View File

@ -18,6 +18,11 @@ server {
ssl_prefer_server_ciphers on;
location / {
if ($args ~* (.*)(prompt=select_account%20consent&)(.*)) {
set $args $1$3;
rewrite ^(.*)$ $1;
}
proxy_pass http://127.0.0.1:9091;
client_body_buffer_size 128k;