2021-10-16 16:07:53 +03:00
|
|
|
{ tools }:
|
|
|
|
with tools.vhosts;
|
|
|
|
{
|
|
|
|
"fonts-googleapis-com" = proxyGhost "https" "fonts.googleapis.com";
|
|
|
|
"fonts-gstatic-com" = proxyGhost "https" "fonts.gstatic.com";
|
|
|
|
"cdnjs-cloudflare-com" = proxyGhost "https" "cdnjs.cloudflare.com";
|
2022-07-11 22:35:02 +03:00
|
|
|
"wttr-in" = let
|
|
|
|
proxy = proxyGhost "https" "wttr.in";
|
|
|
|
in proxy // {
|
|
|
|
locations."/".extraConfig = proxy.locations."/".extraConfig + ''
|
|
|
|
proxy_cache wttr;
|
|
|
|
proxy_cache_key $uri;
|
|
|
|
proxy_cache_min_uses 1;
|
|
|
|
proxy_cache_methods GET HEAD POST;
|
|
|
|
proxy_cache_valid any 10m;
|
|
|
|
proxy_cache_bypass $cookie_nocache $arg_nocache$arg_comment;
|
2022-07-11 22:51:13 +03:00
|
|
|
proxy_cache_lock on;
|
|
|
|
proxy_cache_use_stale updating;
|
2022-07-11 22:35:02 +03:00
|
|
|
'';
|
|
|
|
};
|
2021-10-16 16:07:53 +03:00
|
|
|
}
|