Fix nginx failing to start on certain low-cache CPUs

This commit is contained in:
Slavi Pantaleev 2018-06-26 20:40:48 +03:00
parent 1725c3e698
commit 053328be08
2 changed files with 7 additions and 1 deletions

View File

@ -21,12 +21,13 @@
- "{{ matrix_nginx_proxy_data_path }}" - "{{ matrix_nginx_proxy_data_path }}"
- "{{ matrix_nginx_proxy_confd_path }}" - "{{ matrix_nginx_proxy_confd_path }}"
- name: Ensure Matrix Synapse proxy vhost configured - name: Ensure Matrix nginx-proxy configured
template: template:
src: "{{ role_path }}/templates/nginx-conf.d/{{ item }}.j2" src: "{{ role_path }}/templates/nginx-conf.d/{{ item }}.j2"
dest: "{{ matrix_nginx_proxy_confd_path }}/{{ item }}" dest: "{{ matrix_nginx_proxy_confd_path }}/{{ item }}"
mode: 0644 mode: 0644
with_items: with_items:
- "nginx-http.conf"
- "matrix-synapse.conf" - "matrix-synapse.conf"
- "matrix-riot-web.conf" - "matrix-riot-web.conf"

View File

@ -0,0 +1,5 @@
# The default is aligned to the CPU's cache size,
# which can sometimes be too low to handle our 2 vhosts (Synapse and Riot).
#
# Thus, we ensure a larger bucket size value is used.
server_names_hash_bucket_size 64;