use host overwrite instead of proxy_redirect

This commit is contained in:
Karol Wypchlo 2021-06-16 13:31:09 +02:00
parent 308e37f63f
commit 5214d2d298
1 changed files with 2 additions and 1 deletions

View File

@ -335,7 +335,8 @@ server {
# rewrite tus headers to use correct uri from env variable # rewrite tus headers to use correct uri from env variable
set_by_lua $SKYNET_SERVER_API 'return os.getenv("SKYNET_SERVER_API")'; 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 # extract skylink from base64 encoded upload metadata and assign to a proper header
header_filter_by_lua_block { header_filter_by_lua_block {