From a01df56a9b48576945bef685ffa81b295fab64ed Mon Sep 17 00:00:00 2001 From: Dimitri Huisman Date: Thu, 28 Oct 2021 16:38:26 +0000 Subject: [PATCH] Forgot to include the new endpoint /static --- docs/reverse.rst | 7 ++++++- towncrier/newsfragments/1929.enhancement | 9 +++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/reverse.rst b/docs/reverse.rst index 2c83acec..4841c2de 100644 --- a/docs/reverse.rst +++ b/docs/reverse.rst @@ -47,7 +47,7 @@ Then on your own frontend, point to these local ports. In practice, you only nee } } -Because the admin interface is served as ``/admin``, the Webmail as ``/webmail``, the single sign on page as ``/sso`` and webdav as ``/webdav``, you may also want to use a single virtual host and serve other applications (still Nginx): +Because the admin interface is served as ``/admin``, the Webmail as ``/webmail``, the single sign on page as ``/sso``, webdav as ``/webdav`` and the static files endpoint as ``/static``, you may also want to use a single virtual host and serve other applications (still Nginx): .. code-block:: nginx @@ -71,6 +71,11 @@ Because the admin interface is served as ``/admin``, the Webmail as ``/webmail`` location /webdav { proxy_pass https://localhost:8443/webdav; proxy_set_header Host $http_host; + } + + location /static { + proxy_pass https://localhost:8443/static; + proxy_set_header Host $http_host; } location /main_app { diff --git a/towncrier/newsfragments/1929.enhancement b/towncrier/newsfragments/1929.enhancement index fa02c60b..12c4f607 100644 --- a/towncrier/newsfragments/1929.enhancement +++ b/towncrier/newsfragments/1929.enhancement @@ -1,9 +1,10 @@ -Improved the SSO page. Warning! The new endpoint /sso is introduced. -This endpoint is now used for handling sign on requests. -You may want to update your reverse proxy to proxy /sso to Mailu (to the front service). +Improved the SSO page. Warning! The new endpoints /sso and /static are introduced. +These endpoints are now used for handling sign on requests and shared static files. +You may want to update your reverse proxy to proxy /sso and /static to Mailu (to the front service). +The example section of using a reverse proxy is updated with this information. - New SSO page is used for logging in Admin or Webmail. - Made SSO page available separately. SSO page can now be used without Admin accessible (ADMIN=false). - Introduced stub /static which is used by all sites for accessing static files. - Removed the /admin/ prefix to reduce complexity of routing with Mailu. Admin is accessible directly via /admin instead of /admin/ui -Note: Failed logon attempts are logged in the logs of admin. You can watch this +Note: Failed logon attempts are logged in the logs of admin. You can watch this with fail2ban.