From a73547ea792d14910f0217b1859bb2578edcfb07 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 19 Jun 2024 14:54:04 -0700 Subject: [PATCH] Add nginx with user dirs --- paris-container.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/paris-container.nix b/paris-container.nix index 379ed23..d8b58b2 100644 --- a/paris-container.nix +++ b/paris-container.nix @@ -326,6 +326,25 @@ in { tailscale.enable = true; + nginx = { + enable = true; + recommendedGzipSettings = true; + recommendedOptimisation = true; + virtualHosts."users.fudo.org" = { + serverAliases = "u.fudo.org"; + enableAcme = true; + forceSSL = true; + locations = { + "~ ^/~(.+?)(/.*)?$" = { + alias = "/home/$1/public_html$2"; + index = "index.html"; + extraConfig = "autoindex on;"; + }; + "/".return = "404 not found"; + }; + }; + }; + sssd = { enable = true; kcm = true;