summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2021-05-16 10:03:35 -0400
committerKjetil Orbekk <kj@orbekk.com>2021-05-16 10:06:48 -0400
commitb378ddd483717252c0da9ac7b0dc9369a0d2ff99 (patch)
tree502a3b1d285d618ea3fa421b2b81b4e72faf28f8
parent7690f73b821bd2fbbd7519da1d6f47243bcd3133 (diff)
Update nginx config
Disable dav Add nextcloud endpoint
-rw-r--r--config/web-server.nix32
1 files changed, 15 insertions, 17 deletions
diff --git a/config/web-server.nix b/config/web-server.nix
index 9cb9130..8f008d1 100644
--- a/config/web-server.nix
+++ b/config/web-server.nix
@@ -18,7 +18,7 @@
services.nginx = {
enable = true;
package = pkgs.nginxStable.override {
- modules = with pkgs.nginxModules; [ dav rtmp ];
+ modules = with pkgs.nginxModules; [ rtmp ]; # dav
};
recommendedProxySettings = true;
appendHttpConfig = ''
@@ -116,26 +116,24 @@
autoindex on;
'';
};
- locations."/dav" = {
- root = "/storage/srv/kj.orbekk.com";
- extraConfig = ''
- auth_basic webdav;
- # htpasswd -c /opt/secret/nginx-webdav.htpasswd
- dav_ext_methods PROPFIND OPTIONS;
- auth_basic_user_file "/opt/secret/nginx-webdav.htpasswd";
- dav_methods put delete mkcol copy move;
- dav_access user:rw group:rw all:rw;
- create_full_put_path on;
- autoindex on;
- '';
- };
+ # locations."/dav" = {
+ # root = "/storage/srv/kj.orbekk.com";
+ # extraConfig = ''
+ # auth_basic webdav;
+ # # htpasswd -c /opt/secret/nginx-webdav.htpasswd
+ # dav_ext_methods PROPFIND OPTIONS;
+ # auth_basic_user_file "/opt/secret/nginx-webdav.htpasswd";
+ # dav_methods put delete mkcol copy move;
+ # dav_access user:rw group:rw all:rw;
+ # create_full_put_path on;
+ # autoindex on;
+ # '';
+ # };
};
"git.orbekk.com" = template // {
locations."/".proxyPass = "http://localhost:11103";
};
- "journal.orbekk.com" = template // {
- locations."/".proxyPass = "http://localhost:${toString pjournal_loc.port}";
- };
+ nextcloud = template;
};
};
}