Replace nix-serve usage with nix-serve-ng

This commit is contained in:
2023-06-27 13:01:30 -05:00
parent db6195695e
commit 17055e30a4
2 changed files with 13 additions and 2 deletions

View File

@ -9,7 +9,10 @@
enableACME = true;
forceSSL = true;
root = "/var/www/cache.matri.cx";
locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
locations."/" = {
extraConfig = "allow 192.168.0.0\/24;\ndeny all;";
proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
};
};
virtualHosts."caitlynncox.com" = {