diff --git a/docker-compose.yml b/docker-compose.yml index 1ea3c06b..998eb8f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -76,7 +76,7 @@ services: - ./docker/nginx/conf.d:/etc/nginx/conf.d - ./docker/nginx/conf.d.templates:/etc/nginx/templates - ./docker/nginx/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf - - ./docker/data/website/public/errors:/etc/nginx/errors + - ./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 25f59815..2354cc96 100644 --- a/docker/nginx/conf.d/include/location-skylink +++ b/docker/nginx/conf.d/include/location-skylink @@ -37,12 +37,12 @@ proxy_set_header User-Agent: Sia-Agent; proxy_pass http://sia:9980/skynet/skylink/$skylink$path$is_args$args; -error_page 400 /etc/nginx/errors/400/index.html; -error_page 401 /etc/nginx/errors/401/index.html; -error_page 403 /etc/nginx/errors/403/index.html; -error_page 404 /etc/nginx/errors/404/index.html; -error_page 451 /etc/nginx/errors/451/index.html; -error_page 500 /etc/nginx/errors/500/index.html; +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; log_by_lua_block { local skynet_account = require("skynet.account")