Added nginx proxy worker configuration to template and defaults

This commit is contained in:
SierraKiloBravo 2021-03-02 11:30:09 +01:00
parent 31d2e013f7
commit 0de0716527
2 changed files with 8 additions and 3 deletions

View File

@ -364,3 +364,9 @@ matrix_nginx_proxy_synapse_generic_worker_federation_locations: []
matrix_nginx_proxy_synapse_media_repository_locations: []
matrix_nginx_proxy_synapse_user_dir_locations: []
matrix_nginx_proxy_synapse_frontend_proxy_locations: []
# The amount of worker processes and connections
# Consider increasing these when you are expecting high amounts of traffic
# http://nginx.org/en/docs/ngx_core_module.html#worker_connections
matrix_nginx_proxy_worker_processes: 1
matrix_nginx_proxy_worker_connections: 1024

View File

@ -8,14 +8,13 @@
# - various temp paths are changed to `/tmp`, so that a non-root user can write to them
# - the `user` directive was removed, as we don't want nginx to switch users
worker_processes 1;
worker_processes {{ matrix_nginx_proxy_worker_processes }};
error_log /var/log/nginx/error.log warn;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
worker_connections {{ matrix_nginx_proxy_worker_connections }};
}