From 6fc1273b58c14fac5fbd9ee7a5d84b1bce54dc05 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 10 Mar 2022 14:51:14 +0100 Subject: [PATCH] Add a link to autoconfigure apple devices --- core/admin/mailu/ui/templates/client.html | 1 + core/nginx/conf/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/admin/mailu/ui/templates/client.html b/core/admin/mailu/ui/templates/client.html index e5d4eab8..bf0ba64e 100644 --- a/core/admin/mailu/ui/templates/client.html +++ b/core/admin/mailu/ui/templates/client.html @@ -9,6 +9,7 @@ {%- endblock %} {%- block content %} +
If you use an Apple device, click here to autoconfigure it.
{%- call macros.table(title=_("Incoming mail"), datatable=False) %} diff --git a/core/nginx/conf/nginx.conf b/core/nginx/conf/nginx.conf index 4edb5dcd..3e0ae94c 100644 --- a/core/nginx/conf/nginx.conf +++ b/core/nginx/conf/nginx.conf @@ -133,7 +133,7 @@ http { proxy_pass http://$admin; } # apple mobileconfig - location ^~ /mobileconfig { + location ~ ^/(apple\.)?mobileconfig { rewrite ^ /internal/autoconfig/apple break; include /etc/nginx/proxy.conf; proxy_pass http://$admin;