Skip to content

Commit

Permalink
feat(reverse-proxy): update reverse proxy maintenance files
Browse files Browse the repository at this point in the history
  • Loading branch information
gBusato committed Jul 31, 2024
1 parent 973ac12 commit ec34e10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
22 changes: 4 additions & 18 deletions reverse_proxy/app/nginx/templates/conf.d/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,11 @@ server {
return 503;
}

include includes/location_*.conf;
include includes/env/location_*.conf;

# Error page configuration for maintenance mode
error_page 503 @maintenance;


# Serve the maintenance page for 503 errors
location @maintenance {
root /etc/nginx/html;
try_files /maintenance.html =503;
}
include includes/location_*.conf;
include includes/env/location_*.conf;
}

server {
Expand Down Expand Up @@ -69,16 +62,9 @@ server {
return 503;
}

include includes/location_*.conf;
include includes/env/location_*.conf;

# Error page configuration for maintenance mode
error_page 503 @maintenance;


# Serve the maintenance page for 503 errors
location @maintenance {
root /etc/nginx/html;
try_files /maintenance.html =503;
}
include includes/location_*.conf;
include includes/env/location_*.conf;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
location @maintenance {
root /etc/nginx/html;
try_files /maintenance.html =503;
}

0 comments on commit ec34e10

Please sign in to comment.