Skip to content

Commit

Permalink
Add nginx recommended settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jhh committed Feb 8, 2025
1 parent 95de7c4 commit 6db8a7f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nix/modules/nixos/strykeforce-website.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ in

services.nginx = {
enable = true;
recommendedBrotliSettings = true;
recommendedTlsSettings = true;
recommendedZstdSettings = true;
recommendedProxySettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
Expand Down Expand Up @@ -155,6 +158,11 @@ in
};
};

networking.firewall.allowedTCPPorts = [
443
80
];

security.acme.certs = lib.mkIf cfg.ssl {
"www.strykeforce.org".email = "[email protected]";
};
Expand Down

0 comments on commit 6db8a7f

Please sign in to comment.