From f0cd3945ffb73b94e3979da76f082bf154768250 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 30 Dec 2021 05:27:50 -0500 Subject: Fix webdav config --- config/web-server.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config') 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 = '' -- cgit v1.2.3