fix: incorrect syntax
This commit is contained in:
parent
b9e0dfb82c
commit
6e7fe8354b
@ -10,7 +10,7 @@ location ^~ /authelia {
|
|||||||
|
|
||||||
location = /authelia/api/verify {
|
location = /authelia/api/verify {
|
||||||
internal;
|
internal;
|
||||||
if ($request_uri ~ [^a-zA-Z0-9_+-=\!@$%&*?~.:#'\;\(\)\[\]])\{\} {
|
if ($request_uri ~ [^a-zA-Z0-9_+-=\!@$%&*?~.:#'\;\(\)\[\]\{\}]) {
|
||||||
return 401;
|
return 401;
|
||||||
}
|
}
|
||||||
include /config/nginx/resolver.conf;
|
include /config/nginx/resolver.conf;
|
||||||
|
|||||||
@ -109,7 +109,7 @@ fi
|
|||||||
|
|
||||||
# patch authelia-server.conf for CVE-2021-32637
|
# patch authelia-server.conf for CVE-2021-32637
|
||||||
if ! grep -q 'if ($request_uri ~' /config/nginx/authelia-server.conf; then
|
if ! grep -q 'if ($request_uri ~' /config/nginx/authelia-server.conf; then
|
||||||
sed -i '/internal;/a \ \ \ \ if ($request_uri ~ [^a-zA-Z0-9_+-=\\!@$%&*?~.:#'\''\\;\\(\\)\\[\\]])\\{\\} { return 401; }' /config/nginx/authelia-server.conf
|
sed -i '/internal;/a \ \ \ \ if ($request_uri ~ [^a-zA-Z0-9_+-=\\!@$%&*?~.:#'\''\\;\\(\\)\\[\\]\\{\\}]) { return 401; }' /config/nginx/authelia-server.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# copy pre-generated dhparams or generate if needed
|
# copy pre-generated dhparams or generate if needed
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user