From 5ac6d34e009d20938eb28f95da4767e348d58d91 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 16 May 2022 16:43:24 +0200 Subject: [PATCH] Revert "Revert "fix"" This reverts commit d858b8b33ef05753c0f5f1bf91cba769bd24267b. --- docker-compose.yml | 2 +- docker/nginx/conf.d/include/location-skylink | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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")