From 373c03da2f10175df59723820952d9fff8b4c359 Mon Sep 17 00:00:00 2001 From: Tim de Pater Date: Tue, 5 Nov 2019 14:24:16 +0100 Subject: [PATCH] Write temporary files from nginx to /tmp which is writable as unprivileged user --- config/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/nginx.conf b/config/nginx.conf index df1663a..4a81b2d 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -20,6 +20,14 @@ http { 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 { listen [::]:8080 default_server; listen 8080 default_server;