feat: caching

This commit is contained in:
2026-06-05 13:09:18 +00:00
parent 341e3a0e1c
commit 35a5d59cbe
3 changed files with 15 additions and 17 deletions
+4 -1
View File
@@ -18,7 +18,10 @@
services.nginx.virtualHosts."cache.${domain}" = {
enableACME = true;
forceSSL = true;
forceSSL = true;
extraConfig = ''
client_max_body_size 0;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:8080";
};
-16
View File
@@ -37,10 +37,6 @@ let
hashedPasswordFile = config.sops.secrets."mailserver/${name}/hashedPassword".path;
};
};
sslOpts = {
sslCertificate = config.sops.secrets."ssl/porkbun/${domain}/domain.cert.pem".path;
sslCertificateKey = config.sops.secrets."ssl/porkbun/${domain}/private.key.pem".path;
};
in {
imports = [
self.nixosModules.hectic
@@ -118,18 +114,6 @@ in {
key = "init-postgresql";
};
"atticd/environment" = {};
"ssl/porkbun/${domain}/domain.cert.pem" = {
group = "nginx";
mode = "0440";
};
"ssl/porkbun/${domain}/private.key.pem" = {
group = "nginx";
mode = "0440";
};
"ssl/porkbun/${domain}/public.key.pem" = {
group = "nginx";
mode = "0440";
};
"wg-bfs/private-key" = {};
};
};