2021-10-16 16:07:53 +03:00
|
|
|
{ config, lib, toolsets, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
tools = toolsets.nginx {
|
|
|
|
inherit lib config;
|
2023-03-04 22:04:34 +02:00
|
|
|
domain = "cdn-shield.privatevoid.net";
|
2021-10-16 16:07:53 +03:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
services.nginx.virtualHosts = tools.mappers.mapSubdomains (import ./shields.nix { inherit tools; });
|
2022-07-11 22:35:02 +03:00
|
|
|
services.nginx.appendHttpConfig = ''
|
|
|
|
proxy_cache_path /var/cache/nginx/wttr levels=1:2 keys_zone=wttr:10m max_size=100m inactive=30d use_temp_path=off;
|
|
|
|
'';
|
2021-10-16 16:07:53 +03:00
|
|
|
}
|