Merge pull request #1380 from borisrunakov/workers_with_own_webserver

add server_name to matrix-synapse.conf only if matrix_nginx_proxy_enabled
This commit is contained in:
Slavi Pantaleev 2021-11-05 15:38:28 +02:00 committed by GitHub
commit 9af010657d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,9 @@
server { server {
listen 12080; listen 12080;
server_name {{ matrix_nginx_proxy_proxy_synapse_hostname }}; {% if matrix_nginx_proxy_enabled %}
server_name {{ matrix_nginx_proxy_proxy_synapse_hostname }};
{% endif %}
server_tokens off; server_tokens off;
root /dev/null; root /dev/null;
@ -194,8 +196,10 @@ server {
{% if matrix_nginx_proxy_proxy_synapse_federation_api_enabled %} {% if matrix_nginx_proxy_proxy_synapse_federation_api_enabled %}
server { server {
listen 12088; listen 12088;
{% if matrix_nginx_proxy_enabled %}
server_name {{ matrix_nginx_proxy_proxy_synapse_hostname }};
{% endif %}
server_name {{ matrix_nginx_proxy_proxy_synapse_hostname }};
server_tokens off; server_tokens off;
root /dev/null; root /dev/null;