2024-04-03 19:02:21 +00:00
|
|
|
{
|
|
|
|
flake,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-08-18 22:22:59 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [80 443];
|
2024-04-03 19:02:21 +00:00
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
|
|
|
|
resolver.addresses = [
|
|
|
|
"10.13.12.7"
|
|
|
|
"[fd00:b12f:acab:1312:acab:7::]"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.etc = {
|
|
|
|
"nginx/conf-available/proxy.conf".source = ./proxy.conf;
|
|
|
|
"nginx/conf-available/authelia-location.conf".source = ./authelia-location.conf;
|
|
|
|
"nginx/conf-available/authelia-authrequest.conf".source = ./authelia-authrequest.conf;
|
|
|
|
};
|
|
|
|
}
|