|
|
@ -204,25 +204,11 @@ server {
|
|
|
|
ssl_certificate {{ matrix_ssl_config_dir_path }}/live/{{ matrix_nginx_proxy_proxy_matrix_hostname }}/fullchain.pem;
|
|
|
|
ssl_certificate {{ matrix_ssl_config_dir_path }}/live/{{ matrix_nginx_proxy_proxy_matrix_hostname }}/fullchain.pem;
|
|
|
|
ssl_certificate_key {{ matrix_ssl_config_dir_path }}/live/{{ matrix_nginx_proxy_proxy_matrix_hostname }}/privkey.pem;
|
|
|
|
ssl_certificate_key {{ matrix_ssl_config_dir_path }}/live/{{ matrix_nginx_proxy_proxy_matrix_hostname }}/privkey.pem;
|
|
|
|
|
|
|
|
|
|
|
|
{% if matrix_nginx_proxy_ssl_protocols == "" %}
|
|
|
|
|
|
|
|
ssl_protocols {{ matrix_nginx_proxy_ssl_presets[matrix_nginx_proxy_ssl_preset]['protocols'] }};
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
ssl_protocols {{ matrix_nginx_proxy_ssl_protocols }};
|
|
|
|
ssl_protocols {{ matrix_nginx_proxy_ssl_protocols }};
|
|
|
|
|
|
|
|
{% if not matrix_nginx_proxy_ssl_ciphers == "" %}
|
|
|
|
|
|
|
|
ssl_ciphers "{{ matrix_nginx_proxy_ssl_ciphers }}";
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if matrix_nginx_proxy_ssl_prefer_server_ciphers == "" %}
|
|
|
|
|
|
|
|
ssl_prefer_server_ciphers {{ matrix_nginx_proxy_ssl_presets[matrix_nginx_proxy_ssl_preset]['prefer_server_ciphers'] }};
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
ssl_prefer_server_ciphers {{ matrix_nginx_proxy_ssl_prefer_server_ciphers }};
|
|
|
|
ssl_prefer_server_ciphers {{ matrix_nginx_proxy_ssl_prefer_server_ciphers }};
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if matrix_nginx_proxy_ssl_ciphers == "" %}
|
|
|
|
|
|
|
|
{% if matrix_nginx_proxy_ssl_preset == "old" or matrix_nginx_proxy_ssl_preset == "intermediate" %}
|
|
|
|
|
|
|
|
ssl_ciphers "{{ matrix_nginx_proxy_ssl_presets[matrix_nginx_proxy_ssl_preset]['ciphers'] }}";
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
ssl_ciphers {{ matrix_nginx_proxy_ssl_ciphers }};
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ render_vhost_directives() }}
|
|
|
|
{{ render_vhost_directives() }}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -253,25 +239,11 @@ server {
|
|
|
|
ssl_certificate {{ matrix_nginx_proxy_proxy_matrix_federation_api_ssl_certificate }};
|
|
|
|
ssl_certificate {{ matrix_nginx_proxy_proxy_matrix_federation_api_ssl_certificate }};
|
|
|
|
ssl_certificate_key {{ matrix_nginx_proxy_proxy_matrix_federation_api_ssl_certificate_key }};
|
|
|
|
ssl_certificate_key {{ matrix_nginx_proxy_proxy_matrix_federation_api_ssl_certificate_key }};
|
|
|
|
|
|
|
|
|
|
|
|
{% if matrix_nginx_proxy_ssl_protocols == "" %}
|
|
|
|
ssl_protocols {{ matrix_nginx_proxy_ssl_protocols }};
|
|
|
|
ssl_protocols {{ matrix_nginx_proxy_ssl_presets[matrix_nginx_proxy_ssl_preset]['protocols'] }};
|
|
|
|
{% if not matrix_nginx_proxy_ssl_ciphers == "" %}
|
|
|
|
{% else %}
|
|
|
|
ssl_ciphers "{{ matrix_nginx_proxy_ssl_ciphers }}";
|
|
|
|
ssl_protocols {{ matrix_nginx_proxy_ssl_protocols }};
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
ssl_prefer_server_ciphers {{ matrix_nginx_proxy_ssl_prefer_server_ciphers }};
|
|
|
|
|
|
|
|
|
|
|
|
{% if matrix_nginx_proxy_ssl_prefer_server_ciphers == "" %}
|
|
|
|
|
|
|
|
ssl_prefer_server_ciphers {{ matrix_nginx_proxy_ssl_presets[matrix_nginx_proxy_ssl_preset]['prefer_server_ciphers'] }};
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
ssl_prefer_server_ciphers {{ matrix_nginx_proxy_ssl_prefer_server_ciphers }};
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if matrix_nginx_proxy_ssl_ciphers == "" %}
|
|
|
|
|
|
|
|
{% if matrix_nginx_proxy_ssl_preset == "old" or matrix_nginx_proxy_ssl_preset == "intermediate" %}
|
|
|
|
|
|
|
|
ssl_ciphers "{{ matrix_nginx_proxy_ssl_presets[matrix_nginx_proxy_ssl_preset]['ciphers'] }}";
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
ssl_ciphers "{{ matrix_nginx_proxy_ssl_ciphers }}";
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|