Add modules/services/nginx.nix

This commit is contained in:
Henrik Lissner 2019-11-18 01:24:50 -05:00
parent c087ac302a
commit 32240b6cd3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = {
enable = true;
# Use recommended settings
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
}