use in context of location

This commit is contained in:
Karol Wypchlo 2021-06-16 13:23:08 +02:00
parent db1a50a999
commit 4c3aa72424
1 changed files with 2 additions and 1 deletions

View File

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