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:
parent
490c17682c
commit
01fbbbdc91
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user