finish with r1

This commit is contained in:
2025-01-26 01:20:24 +02:00
parent e6221e9dd7
commit e34457d57a

View File

@@ -111,6 +111,19 @@ in
}; };
}; };
nginx =
let
r1 = config.mj.services.nsd-acme.zones."r1.jakstys.lt";
in
{
serviceConfig.LoadCredential = [
"r1.jakstys.lt-cert.pem:${r1.certFile}"
"r1.jakstys.lt-key.pem:${r1.keyFile}"
];
after = [ "nsd-acme-r1.jakstys.lt.service" ];
requires = [ "nsd-acme-r1.jakstys.lt.service" ];
};
caddy = caddy =
let let
r1 = config.mj.services.nsd-acme.zones."r1.jakstys.lt"; r1 = config.mj.services.nsd-acme.zones."r1.jakstys.lt";
@@ -340,8 +353,16 @@ in
nginx = { nginx = {
defaultHTTPListenPort = 8081; defaultHTTPListenPort = 8081;
virtualHosts."r1.jakstys.lt".basicAuthFile = config.age.secrets.r1-htpasswd.path; defaultSSLListenPort = 8443;
virtualHosts."r1.jakstys.lt" = {
basicAuthFile = config.age.secrets.r1-htpasswd.path;
addSSL = true;
sslCertificate = "/run/credentials/nginx.service/r1.jakstys.lt-cert.pem";
sslCertificateKey = "/run/credentials/nginx.service/r1.jakstys.lt-key.pem";
}; };
};
frigate = { frigate = {
enable = true; enable = true;
hostname = "r1.jakstys.lt"; hostname = "r1.jakstys.lt";
@@ -758,11 +779,13 @@ in
53 53
80 80
443 443
8443
]; ];
allowedTCPPorts = [ allowedTCPPorts = [
53 53
80 80
443 443
8443
]; ];
}; };
}; };