1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Add recommended settings to nginx configuration

[metis]
This commit is contained in:
Stefan Ellmauthaler 2022-10-27 14:55:48 +02:00
parent 490c17682c
commit 01fbbbdc91
Failed to extract signature

View File

@ -9,7 +9,13 @@ with lib; {
cfg = config.elss.server.nginx;
in
mkIf cfg.enable {
services.nginx.enable = true;
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
networking.firewall.allowedTCPPorts = [80 443];
services.nginx.virtualHosts."localhost" = {
addSSL = false;