This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/docker/nginx/conf.d/include/location-skylink

9 lines
271 B
Plaintext
Raw Normal View History

2021-08-27 12:15:22 +00:00
include /etc/nginx/conf.d/include/cors;
2022-03-14 13:32:48 +00:00
2022-03-14 15:10:48 +00:00
set_by_lua_block $skyd_disk_cache_enabled {
return os.getenv("SKYD_DISK_CACHE_ENABLED") == "true" and "1" or "0"
2022-03-14 13:32:48 +00:00
}
2021-08-27 12:15:22 +00:00
proxy_set_header User-Agent: Sia-Agent;
2022-03-14 15:10:48 +00:00
proxy_pass http://sia:9980/skynet/skylink/$skylink$path$is_args$args;