Write temporary files from nginx to /tmp which is writable as unprivileged user

This commit is contained in:
Tim de Pater 2019-11-05 14:24:16 +01:00
parent 95ed923068
commit 373c03da2f
No known key found for this signature in database
GPG Key ID: BFE5D809439C9723

View File

@ -20,6 +20,14 @@ http {
keepalive_timeout 65; keepalive_timeout 65;
# Write temporary files to /tmp so they can be created as a non-privileged user
client_body_temp_path /tmp/client_temp;
proxy_temp_path /tmp/proxy_temp_path;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
# Default server definition
server { server {
listen [::]:8080 default_server; listen [::]:8080 default_server;
listen 8080 default_server; listen 8080 default_server;