2023-01-22 17:36:58 +01:00
|
|
|
{ config, values, ... }:
|
2022-12-17 21:51:43 +01:00
|
|
|
{
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
2022-12-17 22:00:57 +01:00
|
|
|
defaults.email = "drift@pvv.ntnu.no";
|
2022-12-17 21:51:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
|
2023-01-22 17:36:58 +01:00
|
|
|
enableReload = true;
|
|
|
|
|
|
|
|
defaultListenAddresses = [
|
|
|
|
values.hosts.ildkule.ipv4
|
|
|
|
"[${values.hosts.ildkule.ipv6}]"
|
|
|
|
|
|
|
|
"127.0.0.1"
|
|
|
|
"127.0.0.2"
|
|
|
|
"[::1]"
|
|
|
|
];
|
|
|
|
|
2022-12-17 21:51:43 +01:00
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
}
|