Add nginx with user dirs
This commit is contained in:
parent
46031af2a8
commit
a73547ea79
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue