From 052fb64a3d679b10364e67c062d2c28d941ed0cf Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 17 Jul 2024 14:40:11 +0000 Subject: [PATCH] nginx: use numbers for upstream ports Otherwise nginx fails when user actually tries to connect, logs have errors such as `invalid port in upstream "127.0.0.1:imaps"` and `invalid port in upstream "127.0.0.1:submissions"`. --- cmdeploy/src/cmdeploy/nginx/nginx.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmdeploy/src/cmdeploy/nginx/nginx.conf.j2 b/cmdeploy/src/cmdeploy/nginx/nginx.conf.j2 index baf8541f..6f8d7dfd 100644 --- a/cmdeploy/src/cmdeploy/nginx/nginx.conf.j2 +++ b/cmdeploy/src/cmdeploy/nginx/nginx.conf.j2 @@ -13,8 +13,8 @@ events { stream { map $ssl_preread_alpn_protocols $proxy { default 127.0.0.1:8443; - ~\bsmtp\b 127.0.0.1:submissions; - ~\bimap\b 127.0.0.1:imaps; + ~\bsmtp\b 127.0.0.1:465; + ~\bimap\b 127.0.0.1:993; } server {