+ You must be authenticated to access this content +
++ You're being redirected to the Log In page of this Skynet Portal +
+HTTP 401: Unauthorized
++ If you're not redirected automatically, + click here. +
+diff --git a/docker-compose.yml b/docker-compose.yml index 998eb8f6..f9a3630d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -74,9 +74,8 @@ services: - ./docker/data/certbot:/etc/letsencrypt - ./docker/nginx/libs:/etc/nginx/libs - ./docker/nginx/conf.d:/etc/nginx/conf.d - - ./docker/nginx/conf.d.templates:/etc/nginx/templates + - ./docker/nginx/templates:/etc/nginx/templates - ./docker/nginx/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf - - ./docker/data/website/public:/etc/nginx/public networks: shared: ipv4_address: 10.10.10.30 diff --git a/docker/nginx/conf.d/include/location-skylink b/docker/nginx/conf.d/include/location-skylink index 1ef2482b..1509eb7b 100644 --- a/docker/nginx/conf.d/include/location-skylink +++ b/docker/nginx/conf.d/include/location-skylink @@ -38,12 +38,12 @@ 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/public/errors/400/index.html; -error_page 401 /etc/nginx/public/errors/401/index.html; -error_page 403 /etc/nginx/public/errors/403/index.html; -error_page 404 /etc/nginx/public/errors/404/index.html; -error_page 451 /etc/nginx/public/errors/451/index.html; -error_page 500 /etc/nginx/public/errors/500/index.html; +# 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; log_by_lua_block { local skynet_account = require("skynet.account") diff --git a/docker/nginx/templates/pages/401.html.template b/docker/nginx/templates/pages/401.html.template new file mode 100644 index 00000000..0a5af747 --- /dev/null +++ b/docker/nginx/templates/pages/401.html.template @@ -0,0 +1,89 @@ + + +
+ + + ++ You're being redirected to the Log In page of this Skynet Portal +
+HTTP 401: Unauthorized
++ If you're not redirected automatically, + click here. +
+