depot/hosts/VEGAS/services/cdn-shield/default.nix

14 lines
404 B
Nix
Raw Normal View History

2023-08-31 01:55:45 +03:00
{ depot, lib, ... }:
2021-10-16 16:07:53 +03:00
let
2023-08-31 01:55:45 +03:00
tools = (depot.lib.override {
meta.domain = lib.mkForce "cdn-shield.privatevoid.net";
}).nginx;
2021-10-16 16:07:53 +03:00
in
{
services.nginx.virtualHosts = tools.mappers.mapSubdomains (import ./shields.nix { inherit tools; });
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
}