From 7c52fe77e1141fb5b8c979bccf0c6aa3588d022b Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 20 May 2022 12:48:51 +0200 Subject: [PATCH] try error pages outside location --- docker/nginx/conf.d/server/server.api | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index 48e7a638..d7abd326 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -23,6 +23,13 @@ rewrite ^/stats /skynet/stats permanent; rewrite ^/skynet/blacklist /skynet/blocklist permanent; rewrite ^/docs(?:/(.*))?$ https://sdk.skynetlabs.com/$1 permanent; +# error_page 400 /etc/nginx/public/etc/nginx/conf.d/pages/400.html; +error_page 401 /etc/nginx/public/etc/nginx/conf.d/pages/401.html; +# error_page 403 /etc/nginx/public/etc/nginx/conf.d/pages/403.html; +# error_page 404 /etc/nginx/public/etc/nginx/conf.d/pages/404.html; +# error_page 451 /etc/nginx/public/etc/nginx/conf.d/pages/451.html; +# error_page 500 501 502 503 /etc/nginx/public/etc/nginx/conf.d/pages/5xx.html; + location / { include /etc/nginx/conf.d/include/cors;