use in context of location
This commit is contained in:
parent
db1a50a999
commit
4c3aa72424
|
@ -333,7 +333,8 @@ server {
|
||||||
# proxy /skynet/tus requests to siad endpoint with all arguments
|
# proxy /skynet/tus requests to siad endpoint with all arguments
|
||||||
proxy_pass http://siad;
|
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;
|
proxy_redirect https://siad $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
|
||||||
|
|
Reference in New Issue