Page 1 of 1

recommended nginx file and directory permissions/owner

Posted: Thu Feb 02, 2017 4:44 pm
by ppal6426
In the installation docs it instructs to set permissions to 755 or 777 but I know that is not what the permissions should be for a production environment and I can't seem to find any other mention of it in the install docs or this forum. What should the owner and permissions for directory and files be set to? I'm on Ubuntu 16.04 w/nginx and php 7. Also the directory "files" is where the local files store is so is the following nginx directive enough to protect that directory?

location /files/ {
internal;
}

Thank you in advance.