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;