2023-01-22 17:36:58 +01:00
|
|
|
{ config, values, ... }:
|
2021-10-17 11:00:52 +02:00
|
|
|
{
|
2022-09-08 17:42:54 +02:00
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "danio@pvv.ntnu.no";
|
|
|
|
};
|
2021-10-17 11:00:52 +02:00
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2022-12-07 10:14:39 +01:00
|
|
|
|
2023-01-22 17:36:58 +01:00
|
|
|
enableReload = true;
|
|
|
|
|
|
|
|
defaultListenAddresses = [
|
|
|
|
values.hosts.jokum.ipv4
|
|
|
|
"[${values.hosts.jokum.ipv6}]"
|
|
|
|
|
|
|
|
"127.0.0.1"
|
|
|
|
"127.0.0.2"
|
|
|
|
"[::1]"
|
|
|
|
];
|
2022-12-07 10:14:39 +01:00
|
|
|
|
2021-10-17 11:00:52 +02:00
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
}
|