From 18fddcd8a4051ed8483ccca9753a9f0de9917e8c Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 20 May 2022 14:19:05 +0200 Subject: [PATCH] update root --- docker/nginx/conf.d/include/location-skylink | 13 +++++++------ docker/nginx/conf.d/server/server.api | 7 ------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/docker/nginx/conf.d/include/location-skylink b/docker/nginx/conf.d/include/location-skylink index 7cd390a0..419eba2b 100644 --- a/docker/nginx/conf.d/include/location-skylink +++ b/docker/nginx/conf.d/include/location-skylink @@ -38,12 +38,13 @@ proxy_set_header User-Agent: Sia-Agent; proxy_pass http://sia:9980/skynet/skylink/$skylink$path$is_args$args; proxy_intercept_errors on; -# error_page 400 /etc/nginx/conf.d/pages/400.html; -error_page 401 /etc/nginx/conf.d/pages/401.html; -# error_page 403 /etc/nginx/conf.d/pages/403.html; -# error_page 404 /etc/nginx/conf.d/pages/404.html; -# error_page 451 /etc/nginx/conf.d/pages/451.html; -# error_page 500 501 502 503 /etc/nginx/conf.d/pages/5xx.html; +root /etc/nginx/conf.d/pages; +# error_page 400 /400.html; +error_page 401 /401.html; +# error_page 403 /403.html; +# error_page 404 /404.html; +# error_page 451 /451.html; +# error_page 500 501 502 503 /5xx.html; log_by_lua_block { local skynet_account = require("skynet.account") diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index b8b74919..82f05c32 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -23,13 +23,6 @@ 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; #