From a3173f879938aa2583f7774446305bca00a3099f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 18 Jul 2020 15:12:24 +0200 Subject: [PATCH] services: letsencrypt: mail subdomain redirection to Migadu --- .../nginx/proxy-confs/mail.subdomain.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 letsencrypt/nginx/proxy-confs/mail.subdomain.conf diff --git a/letsencrypt/nginx/proxy-confs/mail.subdomain.conf b/letsencrypt/nginx/proxy-confs/mail.subdomain.conf new file mode 100644 index 0000000..66d14ed --- /dev/null +++ b/letsencrypt/nginx/proxy-confs/mail.subdomain.conf @@ -0,0 +1,18 @@ +# Redirect to Migadu webmail + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name mail.*; + + include /config/nginx/ssl.conf; + + # enable for ldap auth, fill in ldap details in ldap.conf + #include /config/nginx/ldap.conf; + + # enable for Authelia + #include /config/nginx/authelia-server.conf; + + return 301 https://webmail.migadu.com; +}