From 5214d2d2986e43463091e39eeb1318d3fea52651 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 16 Jun 2021 13:31:09 +0200 Subject: [PATCH] use host overwrite instead of proxy_redirect --- docker/nginx/conf.d/client.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 18244968..30887570 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -335,7 +335,8 @@ server { # rewrite tus headers to use correct uri from env variable set_by_lua $SKYNET_SERVER_API 'return os.getenv("SKYNET_SERVER_API")'; - proxy_redirect https://siad $SKYNET_SERVER_API; + # proxy_redirect https://siad $SKYNET_SERVER_API; + proxy_set_header Host $SKYNET_SERVER_API; # extract skylink from base64 encoded upload metadata and assign to a proper header header_filter_by_lua_block {