Wire admin studio SSR and search infrastructure
This commit is contained in:
30
deploy/nginx/upstream-error-pages.conf
Normal file
30
deploy/nginx/upstream-error-pages.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# Nginx upstream / gateway error pages for Skinbase Nova
|
||||
# ---------------------------------------------------------------------------
|
||||
# Purpose:
|
||||
# Serve a Nova-styled static HTML page for nginx-level upstream failures such
|
||||
# as 502 Bad Gateway and 504 Gateway Timeout. These responses happen before
|
||||
# Laravel can render Blade error views, so they must be handled by nginx.
|
||||
#
|
||||
# Setup:
|
||||
# 1. Include this file inside the `server {}` block for the Skinbase site.
|
||||
# 2. Enable `fastcgi_intercept_errors on;` inside every FastCGI location that
|
||||
# should use these pages (at minimum `location = /index.php` and any other
|
||||
# direct `fastcgi_pass` location such as upload endpoints).
|
||||
# 3. Ensure the static file exists at:
|
||||
# public/errors/upstream-gateway.html
|
||||
#
|
||||
# This snippet intentionally intercepts only upstream failures. Keep Laravel in
|
||||
# control of normal application errors such as 404, 419, 429, and 500.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
error_page 502 504 /errors/upstream-gateway.html;
|
||||
|
||||
location = /errors/upstream-gateway.html {
|
||||
internal;
|
||||
|
||||
try_files /errors/upstream-gateway.html =502;
|
||||
|
||||
add_header Cache-Control "no-store, no-cache, must-revalidate" always;
|
||||
add_header Content-Type "text/html; charset=UTF-8" always;
|
||||
}
|
||||
Reference in New Issue
Block a user