diff options
Diffstat (limited to 'configuration/snorlax/nginx.nix')
-rw-r--r-- | configuration/snorlax/nginx.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/configuration/snorlax/nginx.nix b/configuration/snorlax/nginx.nix new file mode 100644 index 0000000..cc38496 --- /dev/null +++ b/configuration/snorlax/nginx.nix @@ -0,0 +1,21 @@ +{ ... }: +{ + networking.firewall.allowedTCPPorts = [ 443 ]; + + services.nginx = { + enable = true; + recommendedTlsSettings = true; + + virtualHosts = { + "jras.nl" = { + onlySSL = true; + kTLS = true; + enableACME = true; + root = "/srv/www/jras.nl"; + }; + }; + }; + + security.acme.defaults.email = "jaspert.ras@gmail.com"; + security.acme.acceptTerms = true; +} |