Fixed special characters escaping for nginx config

This commit is contained in:
Illia Chub 2021-02-23 11:32:00 +02:00
parent 79d1eb8e59
commit 4feae21eb4

View file

@ -361,24 +361,24 @@ EOF
rewrite ^/(.*)$ / break;
'';
};
"~ ^/([^/\\?&:'\"]+)$" = {
tryFiles = "$uri @root_path";
"~ ^/([^/\\\\?&:'\\"]+)$" = {
tryFiles = "\$uri @root_path";
};
"=/http-bind" = {
proxyPass = "http://localhost:5280/http-bind";
extraConfig = ''
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header Host \$host;
'';
};
"=/external_api.js" = {
alias = "${pkgs.jitsi-meet}/libs/external_api.min.js";
alias = "\${pkgs.jitsi-meet}/libs/external_api.min.js";
};
"=/config.js" = {
alias = "${pkgs.jitsi-meet}/config.js";
alias = "\${pkgs.jitsi-meet}/config.js";
};
"=/interface_config.js" = {
alias = "${pkgs.jitsi-meet}/interface_config.js";
alias = "\${pkgs.jitsi-meet}/interface_config.js";
};
};
};
@ -1273,4 +1273,4 @@ removeSwap
if [[ -z "$NO_REBOOT" ]]; then
reboot
fi
fi