diff --git a/update/ansible/playbook/tasks/roles/nginx/files/conf.d/pmm.conf b/update/ansible/playbook/tasks/roles/nginx/files/conf.d/pmm.conf index af66541da7..dfdbfe8f11 100644 --- a/update/ansible/playbook/tasks/roles/nginx/files/conf.d/pmm.conf +++ b/update/ansible/playbook/tasks/roles/nginx/files/conf.d/pmm.conf @@ -45,17 +45,17 @@ # this block checks for maintenance.html file and, if it exists, it redirects all requests to the maintenance page # there are two exceptions for it /v1/Updates/Status and /auth_request endpoints - set $skip_maintenance 0; + set $maintenance_mode 0; if (-f /usr/share/pmm-server/maintenance/maintenance.html) { - set $skip_maintenance 1; + set $maintenance_mode 1; } if ($request_uri ~* "^/v1/Updates/Status|^/auth_request") { - set $skip_maintenance 0; + set $maintenance_mode 0; } - if ($skip_maintenance = 1) { + if ($maintenance_mode = 1) { return 503; }