From 4c3aa724245d061ea5e8f2a47c55cecd4944ee87 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 16 Jun 2021 13:23:08 +0200 Subject: [PATCH] use in context of location --- 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 69c6fef4..18244968 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -333,7 +333,8 @@ server { # proxy /skynet/tus requests to siad endpoint with all arguments proxy_pass http://siad; - # rewrite tus headers to use correct uri + # 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; # extract skylink from base64 encoded upload metadata and assign to a proper header