From 7db26f33d91b59b9cba0244785bec96727363a4f Mon Sep 17 00:00:00 2001 From: missytake Date: Sun, 19 Oct 2025 14:02:41 +0200 Subject: [PATCH] nginx: be more specific with the server name (#636) --- CHANGELOG.md | 3 +++ cmdeploy/src/cmdeploy/nginx/nginx.conf.j2 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e662a15..c5f92e84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ - don't use the complicated logging module in filtermail to exclude a potential source of errors. ([#674](https://github.com/chatmail/relay/pull/674)) +- Specify nginx.conf to only handle `mail_domain`, www, and mta-sts domains + ([#636](https://github.com/chatmail/relay/pull/636)) + - Setup TURN server ([#621](https://github.com/chatmail/relay/pull/621)) diff --git a/cmdeploy/src/cmdeploy/nginx/nginx.conf.j2 b/cmdeploy/src/cmdeploy/nginx/nginx.conf.j2 index 8d27394c..58864d72 100644 --- a/cmdeploy/src/cmdeploy/nginx/nginx.conf.j2 +++ b/cmdeploy/src/cmdeploy/nginx/nginx.conf.j2 @@ -66,7 +66,7 @@ http { index index.html index.htm; - server_name _; + server_name {{ config.domain_name }} www.{{ config.domain_name }} mta-sts.{{ config.domain_name }}; access_log syslog:server=unix:/dev/log,facility=local7;