diff options
-rw-r--r-- | custom/ymir-nginx.nix | 4 | ||||
-rw-r--r-- | users/gkleen.nix | 2 | ||||
-rw-r--r-- | ymir.nix | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index 96633f00..701a1108 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix | |||
@@ -194,11 +194,11 @@ in { | |||
194 | include ${acme}; | 194 | include ${acme}; |
195 | 195 | ||
196 | location ~ ^/(.+?)(/.*)?$ { | 196 | location ~ ^/(.+?)(/.*)?$ { |
197 | alias /home/$1/webdav$2; | 197 | alias /srv/www/webdav/$1$2; |
198 | autoindex on; | 198 | autoindex on; |
199 | 199 | ||
200 | auth_basic "WebDAV user directory of $1"; | 200 | auth_basic "WebDAV user directory of $1"; |
201 | auth_basic_user_file /home/$1/webdav.htpasswd; | 201 | auth_basic_user_file /srv/www/webdav/$1.htpasswd; |
202 | 202 | ||
203 | client_body_temp_path /tmp/webdav.$1; | 203 | client_body_temp_path /tmp/webdav.$1; |
204 | dav_methods PUT DELETE MKCOL COPY MOVE; | 204 | dav_methods PUT DELETE MKCOL COPY MOVE; |
diff --git a/users/gkleen.nix b/users/gkleen.nix index 1beaf1c3..a71a2905 100644 --- a/users/gkleen.nix +++ b/users/gkleen.nix | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | name = "gkleen"; | 2 | name = "gkleen"; |
3 | description = "Gregor Kleen"; | 3 | description = "Gregor Kleen"; |
4 | extraGroups = [ "wheel" "network" "lp" "dialout" "audio" "xmpp" "mail" "ftp" "ssh" "vboxusers" ]; | 4 | extraGroups = [ "wheel" "network" "lp" "dialout" "audio" "xmpp" "mail" "webdav" "ssh" "vboxusers" ]; |
5 | group = "users"; | 5 | group = "users"; |
6 | uid = 1000; | 6 | uid = 1000; |
7 | createHome = true; | 7 | createHome = true; |
@@ -960,4 +960,6 @@ in rec { | |||
960 | systemd.status-mail = { | 960 | systemd.status-mail = { |
961 | onFailure = [ "nixos-upgrade" "postfix" "dovecot2" "prosody" "opendkim" "nsd" "unbound" "tinc.yggdrasil" "postsrsd" ]; | 961 | onFailure = [ "nixos-upgrade" "postfix" "dovecot2" "prosody" "opendkim" "nsd" "unbound" "tinc.yggdrasil" "postsrsd" ]; |
962 | }; | 962 | }; |
963 | |||
964 | users.extraGroups."webdav" = {}; | ||
963 | } | 965 | } |