mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2024-12-04 19:40:07 +01:00
25 lines
503 B
Nix
25 lines
503 B
Nix
{ values, ... }:
|
|
{
|
|
users.groups.acme.members = [ "nginx" ];
|
|
|
|
security.acme.certs."postgres.pvv.ntnu.no" = {
|
|
group = "acme";
|
|
extraDomainNames = [
|
|
# "postgres.pvv.org"
|
|
"bicep.pvv.ntnu.no"
|
|
# "bicep.pvv.org"
|
|
# values.hosts.bicep.ipv4
|
|
# values.hosts.bicep.ipv6
|
|
];
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts."postgres.pvv.ntnu.no" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
# useACMEHost = "postgres.pvv.ntnu.no";
|
|
};
|
|
};
|
|
}
|