Add nginx with user dirs

This commit is contained in:
niten 2024-06-19 14:54:04 -07:00
parent 46031af2a8
commit a73547ea79
1 changed files with 19 additions and 0 deletions

View File

@ -326,6 +326,25 @@ in {
tailscale.enable = true; 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 = { sssd = {
enable = true; enable = true;
kcm = true; kcm = true;