2024-01-18 20:53:14 +01:00
|
|
|
server {
|
2025-02-03 17:24:18 +01:00
|
|
|
# Somehow .j2 doesn't interpretate the passed variable right. For this reasons this redeclaration is necessary
|
|
|
|
{% set domain = domains.matrix_synapse %}
|
2025-02-12 12:41:13 +01:00
|
|
|
{% set http_port = ports.localhost.http.matrix_synapse %}
|
2025-02-03 17:24:18 +01:00
|
|
|
|
|
|
|
server_name {{domain}};
|
2024-01-18 20:53:14 +01:00
|
|
|
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
|
|
|
|
|
|
|
|
# For the federation port
|
2025-01-17 18:56:13 +01:00
|
|
|
listen 8448 ssl default_server;
|
|
|
|
listen [::]:8448 ssl default_server;
|
2024-01-18 20:53:14 +01:00
|
|
|
|
2025-02-07 13:39:46 +01:00
|
|
|
{% include 'roles/nginx-global/templates/global.includes.conf.j2'%}
|
2024-01-20 12:46:07 +01:00
|
|
|
{% include 'roles/nginx-docker-reverse-proxy/templates/proxy_pass.conf.j2' %}
|
2024-01-18 20:53:14 +01:00
|
|
|
}
|