Revert "Revert "fix""

This reverts commit d858b8b33e.
This commit is contained in:
Karol Wypchlo 2022-05-16 16:43:24 +02:00
parent d858b8b33e
commit 5ac6d34e00
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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")