瀏覽代碼

Fix nginx failing to start on certain low-cache CPUs

pull/6/head
Slavi Pantaleev 7 年之前
父節點
當前提交
053328be08
共有 2 個檔案被更改,包括 7 行新增1 行删除
  1. +2
    -1
      roles/matrix-server/tasks/setup_nginx_proxy.yml
  2. +5
    -0
      roles/matrix-server/templates/nginx-conf.d/nginx-http.conf.j2

+ 2
- 1
roles/matrix-server/tasks/setup_nginx_proxy.yml 查看文件

@@ -21,12 +21,13 @@
- "{{ matrix_nginx_proxy_data_path }}"
- "{{ matrix_nginx_proxy_confd_path }}"

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



+ 5
- 0
roles/matrix-server/templates/nginx-conf.d/nginx-http.conf.j2 查看文件

@@ -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;

Loading…
取消
儲存