This commit is contained in:
Ivaylo Novakov 2022-03-14 17:32:53 +01:00
parent 7ff42c4326
commit 4f93028c1a
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include /etc/nginx/conf.d/include/proxy-cache-downloads;
#### this is important because we want only one format in cache keys and logs
###set_by_lua_block $skylink { return require("skynet.skylink").parse(ngx.var.skylink) }
###
#### $skylink_v1 and $skylink_v2 variables default to the same value but in case the requested skylink was:
$skylink_v1 and $skylink_v2 variables default to the same value but in case the requested skylink was:
#### a) skylink v1 - it would not matter, no additional logic is executed
#### b) skylink v2 - in a lua block below we will resolve the skylink v2 into skylink v1 and update
#### $skylink_v1 variable so then the proxy request to skyd can be cached in nginx (proxy_cache_key