File tree Expand file tree Collapse file tree 5 files changed +25
-0
lines changed Expand file tree Collapse file tree 5 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ USE_NGINX_MAX_UPLOAD=${NGINX_MAX_UPLOAD:-0}
55# Generate Nginx config for maximum upload file size
66echo " client_max_body_size $USE_NGINX_MAX_UPLOAD ;" > /etc/nginx/conf.d/upload.conf
77
8+ # Get the number of workers for Nginx, default to 1
9+ USE_NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:- 1}
10+ # Modify the number of worker processes in Nginx config
11+ sed -i " /worker_processes\s/c\worker_processes ${USE_NGINX_WORKER_PROCESSES} ;" /etc/nginx/nginx.conf
12+
813# Get the URL for static files from the environment variable
914USE_STATIC_URL=${STATIC_URL:- ' /static' }
1015# Get the absolute path of the static files from the environment variable
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ USE_NGINX_MAX_UPLOAD=${NGINX_MAX_UPLOAD:-0}
55# Generate Nginx config for maximum upload file size
66echo " client_max_body_size $USE_NGINX_MAX_UPLOAD ;" > /etc/nginx/conf.d/upload.conf
77
8+ # Get the number of workers for Nginx, default to 1
9+ USE_NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:- 1}
10+ # Modify the number of worker processes in Nginx config
11+ sed -i " /worker_processes\s/c\worker_processes ${USE_NGINX_WORKER_PROCESSES} ;" /etc/nginx/nginx.conf
12+
813# Get the URL for static files from the environment variable
914USE_STATIC_URL=${STATIC_URL:- ' /static' }
1015# Get the absolute path of the static files from the environment variable
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ USE_NGINX_MAX_UPLOAD=${NGINX_MAX_UPLOAD:-0}
55# Generate Nginx config for maximum upload file size
66echo " client_max_body_size $USE_NGINX_MAX_UPLOAD ;" > /etc/nginx/conf.d/upload.conf
77
8+ # Get the number of workers for Nginx, default to 1
9+ USE_NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:- 1}
10+ # Modify the number of worker processes in Nginx config
11+ sed -i " /worker_processes\s/c\worker_processes ${USE_NGINX_WORKER_PROCESSES} ;" /etc/nginx/nginx.conf
12+
813# Get the URL for static files from the environment variable
914USE_STATIC_URL=${STATIC_URL:- ' /static' }
1015# Get the absolute path of the static files from the environment variable
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ USE_NGINX_MAX_UPLOAD=${NGINX_MAX_UPLOAD:-0}
55# Generate Nginx config for maximum upload file size
66echo " client_max_body_size $USE_NGINX_MAX_UPLOAD ;" > /etc/nginx/conf.d/upload.conf
77
8+ # Get the number of workers for Nginx, default to 1
9+ USE_NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:- 1}
10+ # Modify the number of worker processes in Nginx config
11+ sed -i " /worker_processes\s/c\worker_processes ${USE_NGINX_WORKER_PROCESSES} ;" /etc/nginx/nginx.conf
12+
813# Get the URL for static files from the environment variable
914USE_STATIC_URL=${STATIC_URL:- ' /static' }
1015# Get the absolute path of the static files from the environment variable
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ USE_NGINX_MAX_UPLOAD=${NGINX_MAX_UPLOAD:-0}
55# Generate Nginx config for maximum upload file size
66echo " client_max_body_size $USE_NGINX_MAX_UPLOAD ;" > /etc/nginx/conf.d/upload.conf
77
8+ # Get the number of workers for Nginx, default to 1
9+ USE_NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:- 1}
10+ # Modify the number of worker processes in Nginx config
11+ sed -i " /worker_processes\s/c\worker_processes ${USE_NGINX_WORKER_PROCESSES} ;" /etc/nginx/nginx.conf
12+
813# Get the URL for static files from the environment variable
914USE_STATIC_URL=${STATIC_URL:- ' /static' }
1015# Get the absolute path of the static files from the environment variable
You can’t perform that action at this time.
0 commit comments