summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2021-12-30 05:27:50 -0500
committerKjetil Orbekk <kj@orbekk.com>2021-12-30 05:27:50 -0500
commitf0cd3945ffb73b94e3979da76f082bf154768250 (patch)
tree5a7d1636e4420e5297bcb47569e336a443bd3add /config
parent275d69fc4876a7bcd5ecd3d1f0c74e997966b75d (diff)
Fix webdav config
Diffstat (limited to 'config')
-rw-r--r--config/web-server.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/config/web-server.nix b/config/web-server.nix
index 5219a48..c07a4fc 100644
--- a/config/web-server.nix
+++ b/config/web-server.nix
@@ -13,13 +13,15 @@ in {
# I'm storing web files in /home.
systemd.services.nginx.serviceConfig.ProtectHome = "read-only";
- systemd.services.nginx.serviceConfig.ReadWritePaths =
- [ "/storage/srv/kj.orbekk.com/tmp/hls/" ];
+ systemd.services.nginx.serviceConfig.ReadWritePaths = [
+ "/storage/srv/kj.orbekk.com/tmp/hls/"
+ "/storage/srv/kj.orbekk.com/dav/"
+ ];
services.nginx = {
enable = true;
package = pkgs.nginxStable.override {
- modules = with pkgs.nginxModules; [ rtmp ]; # dav
+ modules = with pkgs.nginxModules; [ dav rtmp ];
};
recommendedProxySettings = true;
appendHttpConfig = ''