nginx needs access to the webdav socket
This commit is contained in:
parent
aa4caeea9f
commit
d79fbeb419
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue