File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ http {
27
27
local upstream = os.getenv("npm_config_registry" )
28
28
-- escape . and - which have special meaning in Lua patterns
29
29
upstream = upstream:gsub("%." , "%%." ):gsub("%-" , "%%-" ):gsub("/+$" , "" )
30
- ngx.log(ngx.ERR, 'using upstream base:', upstream)
30
+ -- ngx.log(ngx.ERR, 'using upstream base:', upstream)
31
31
return upstream
32
32
}
33
33
set_by_lua_block $npm_config_registry {
34
34
local upstream = os.getenv("npm_config_registry"):gsub("/+$", "")
35
- ngx.log(ngx.ERR, ' using upstream server:', upstream)
35
+ -- ngx.log(ngx.ERR, ' using upstream server:', upstream)
36
36
return upstream
37
37
}
38
38
location ~ ^/.*\.tgz$ {
60
60
local upstream = ngx.var.upstream_base
61
61
-- need to construct URL because we may be proxying http<->https
62
62
local base = ngx.var.scheme .. ' ://' .. ngx.var.http_host
63
- ngx.log(ngx.ERR, "Modifying JSON of " .. ngx.var.uri .. " to replace ' " .. upstream .. " ' with ' " .. base .. " '")
63
+ -- ngx.log(ngx.ERR, "Modifying JSON of " .. ngx.var.uri .. " to replace ' " .. upstream .. " ' with ' " .. base .. " '")
64
64
ngx.arg[1] = string.gsub(ngx.arg[1], upstream, base)
65
65
}
66
66
}
You can’t perform that action at this time.
0 commit comments