summaryrefslogtreecommitdiff
path: root/modules/snorlax/nginx.nix
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-02-12 08:19:04 +0100
committerJasper Ras <jras@hostnet.nl>2025-02-12 08:19:04 +0100
commit07f84bb581e369ff79100f0417e9d277f3c1fb61 (patch)
tree64ec899f185a3d794791df191f53939dbc67be41 /modules/snorlax/nginx.nix
parent8fe481c0858702231335ad6c5eb850b293781b61 (diff)
alot of stuff
Diffstat (limited to 'modules/snorlax/nginx.nix')
-rw-r--r--modules/snorlax/nginx.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/snorlax/nginx.nix b/modules/snorlax/nginx.nix
new file mode 100644
index 0000000..cc38496
--- /dev/null
+++ b/modules/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;
+}