From c59af50bc2f7a366cd12a8dd6fc7d7e3b1c32480 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 22 Dec 2020 16:15:21 -0500 Subject: [PATCH] 16306: Move nginx temp dirs into a subdir. When running as root, Nginx changes ownership of these temp dirs to "nobody". We also use the same TMPDIR for standalone passenger processes, which run as www-data, so we need Nginx to leave it alone. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- sdk/python/tests/nginx.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/python/tests/nginx.conf b/sdk/python/tests/nginx.conf index cdca68dd67..a4336049f2 100644 --- a/sdk/python/tests/nginx.conf +++ b/sdk/python/tests/nginx.conf @@ -11,11 +11,11 @@ http { '[$time_local] "$http_x_request_id" $server_name $status $body_bytes_sent $request_time $request_method "$scheme://$http_host$request_uri" $remote_addr:$remote_port ' '"$http_referer" "$http_user_agent"'; access_log "{{ACCESSLOG}}" customlog; - client_body_temp_path "{{TMPDIR}}"; - proxy_temp_path "{{TMPDIR}}"; - fastcgi_temp_path "{{TMPDIR}}"; - uwsgi_temp_path "{{TMPDIR}}"; - scgi_temp_path "{{TMPDIR}}"; + client_body_temp_path "{{TMPDIR}}/nginx"; + proxy_temp_path "{{TMPDIR}}/nginx"; + fastcgi_temp_path "{{TMPDIR}}/nginx"; + uwsgi_temp_path "{{TMPDIR}}/nginx"; + scgi_temp_path "{{TMPDIR}}/nginx"; upstream controller { server {{LISTENHOST}}:{{CONTROLLERPORT}}; } -- 2.30.2