1
0
Fork 0
NixOS/hosts/greatyamada/services/nginx.nix
2025-06-21 15:42:06 +02:00

19 lines
494 B
Nix

{ ... }: {
networking.firewall.allowedTCPPorts = [ 443 ];
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
recommendedOptimisation = true;
recommendedTlsSettings = true;
virtualHosts = {
"rcia.dev" = {
forceSSL = true;
# enableACME = true;
useACMEHost = "rcia.dev";
serverAliases = [ "*.rcia.dev" ];
# locations."/" = { root = /var/www/public; };
};
};
};
}