use host overwrite instead of proxy_redirect
This commit is contained in:
parent
308e37f63f
commit
5214d2d298
|
@ -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 {
|
||||
|
|
Reference in New Issue