refactor(NGINX): move tmp paths to accessible locations for limited user

This commit is contained in:
Asif Bacchus 2021-01-07 13:31:04 -07:00
parent d293e7b3e9
commit 00fcd6dd10

View File

@ -3,7 +3,7 @@
# #
worker_processes 1; worker_processes 1;
pid /etc/nginx/nginx.pid; pid /tmp/nginx.pid;
error_log /var/log/nginx/error.log warn; error_log /var/log/nginx/error.log warn;
@ -37,6 +37,13 @@ http {
'cache="$upstream_cache_status"'; 'cache="$upstream_cache_status"';
access_log <ACCESS_LOG_SETTING>; access_log <ACCESS_LOG_SETTING>;
# change temp paths so limited user can access them
client_body_temp_path /tmp/client_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
proxy_temp_path /tmp/proxy_temp;
scgi_temp_path /tmp/scgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
# server configuration options # server configuration options
server_tokens off; server_tokens off;
real_ip_recursive on; real_ip_recursive on;