All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 58s
CD Pipeline / build-and-deploy (push) Successful in 4m27s
CD Pipeline / post-deploy-checks (push) Successful in 1m44s
18 lines
702 B
Plaintext
18 lines
702 B
Plaintext
# Include this inside each public server {} that proxies to internal AWOOOI,
|
|
# StockPlatform, MOMO, Tsenyang, Bitan, Gitea, Harbor, or registry upstreams.
|
|
#
|
|
# The static file must be deployed outside the application containers, for
|
|
# example /var/www/maintenance/maintenance.html on the edge Nginx host.
|
|
|
|
proxy_intercept_errors on;
|
|
error_page 502 503 504 =503 /__awoooi-maintenance.html;
|
|
|
|
location = /__awoooi-maintenance.html {
|
|
internal;
|
|
root /var/www/maintenance;
|
|
try_files /maintenance.html =503;
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" always;
|
|
add_header Retry-After "120" always;
|
|
add_header X-AWOOOI-Fallback "local-maintenance" always;
|
|
}
|