nginx needs access to the webdav socket

This commit is contained in:
William 2025-07-12 16:29:46 -03:00
parent aa4caeea9f
commit d79fbeb419

View file

@ -219,7 +219,8 @@ in
# Create runtime directory for socket
RuntimeDirectory = "rclone-webdav";
RuntimeDirectoryMode = "0755";
RuntimeDirectoryMode = "0750";
UMask = "0002";
};
# Ensure the user exists
@ -228,6 +229,10 @@ in
mkdir -p /data/webdav
chown user:users /data/webdav
chmod 755 /data/webdav
# Ensure nginx can access the socket directory
mkdir -p /run/rclone-webdav
chown user:nginx /run/rclone-webdav
chmod 750 /run/rclone-webdav
'';
};
};