websockets icon indicating copy to clipboard operation
websockets copied to clipboard

Nginx Reverse Proxy - Unix Socket - Permission Denied

Open AhmedERady opened this issue 1 year ago • 1 comments

How can nginx read the .sock file if websockets does not give it permission?

AhmedERady avatar Oct 03 '24 05:10 AhmedERady

Is nginx even capable of reading/writing anything outside of /var/www (Even if they own it)?

AhmedERady avatar Oct 03 '24 05:10 AhmedERady

Setting the umask of the Python process with os.umask() should do the job.

nginx can read anywhere, provided the user it's running under has access.

aaugustin avatar Oct 25 '24 21:10 aaugustin