Skip to content

Commit

Permalink
PMM-12221 rename variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Aug 30, 2023
1 parent eaeaa54 commit 2d9e0dd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2d9e0dd

Please sign in to comment.