mirror of
https://github.com/mashirozx/docker-php-nginx.git
synced 2024-11-22 14:58:15 +08:00
Write temporary files from nginx to /tmp which is writable as unprivileged user
This commit is contained in:
parent
95ed923068
commit
373c03da2f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user