2023-06-04 01:59:35 +02:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
{
|
2023-11-05 01:41:45 +01:00
|
|
|
imports = [
|
|
|
|
./ingress.nix
|
|
|
|
];
|
|
|
|
|
2023-06-04 01:59:35 +02:00
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "drift@pvv.ntnu.no";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
}
|