mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-02-04 09:10:01 +01:00
modules/grzegorz: override base certificate config
This commit is contained in:
@@ -67,10 +67,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
${config.networking.fqdn} = {
|
${config.networking.fqdn} = {
|
||||||
sslCertificate = "/etc/certs/nginx.crt";
|
sslCertificate = lib.mkDefault "/etc/certs/nginx.crt";
|
||||||
sslCertificateKey = "/etc/certs/nginx.key";
|
sslCertificateKey = lib.mkDefault "/etc/certs/nginx.key";
|
||||||
addSSL = true;
|
addSSL = lib.mkDefault true;
|
||||||
extraConfig = "return 444;";
|
extraConfig = lib.mkDefault "return 444;";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,9 +37,13 @@ in {
|
|||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
${config.networking.fqdn} = {
|
${config.networking.fqdn} = {
|
||||||
|
# NOTE: this overrides the default config in base/services/nginx.nix
|
||||||
|
addSSL = false;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
|
|
||||||
serverAliases = [
|
serverAliases = [
|
||||||
"${machine}.pvv.org"
|
"${machine}.pvv.org"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user