web: use env variables to set worker processes and connections
Use 2 new environment variables to allow setting the number of nginx worker processes and connections. Add the variables to the docker-compose file and to the nginx-conf where default values are also set.
This commit is contained in:
@@ -71,6 +71,8 @@ services:
|
|||||||
- MATOMO_SITE_ID
|
- MATOMO_SITE_ID
|
||||||
- MICROSOFT_API_APP_CLIENT_ID
|
- MICROSOFT_API_APP_CLIENT_ID
|
||||||
- NGINX_RESOLVER
|
- NGINX_RESOLVER
|
||||||
|
- NGINX_WORKER_PROCESSES
|
||||||
|
- NGINX_WORKER_CONNECTIONS
|
||||||
- PEOPLE_SEARCH_URL
|
- PEOPLE_SEARCH_URL
|
||||||
- RESOLUTION
|
- RESOLUTION
|
||||||
- RESOLUTION_MIN
|
- RESOLUTION_MIN
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
user www-data;
|
user www-data;
|
||||||
worker_processes 4;
|
worker_processes {{ .Env.NGINX_WORKER_PROCESSES | default "4" }};
|
||||||
pid /run/nginx.pid;
|
pid /run/nginx.pid;
|
||||||
include /etc/nginx/modules-enabled/*.conf;
|
include /etc/nginx/modules-enabled/*.conf;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 768;
|
worker_connections {{ .Env.NGINX_WORKER_CONNECTIONS | default "768" }};
|
||||||
# multi_accept on;
|
# multi_accept on;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user