1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Update reverse.rst

updated the external proxy location pattern and added a note: do not add a / at the end
This commit is contained in:
Eric 2022-01-23 11:53:07 -07:00 committed by GitHub
parent d3db047fcc
commit c62947aec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ Because the admin interface is served as ``/admin``, the Webmail as ``/webmail``
server {
# [...] here goes your standard configuration
location ~ ^/(admin|sso|static|webdav|webmail)/ {
location ~ ^/(admin|sso|static|webdav|webmail) {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr
proxy_pass https://localhost:8443;
@ -89,6 +89,8 @@ Because the admin interface is served as ``/admin``, the Webmail as ``/webmail``
}
}
.. note:: Please don’t add a ``/`` at the end of the location pattern or all your redirects will fail with 404 because the ``/`` would be missing, and you would have to add it manually to move on
.. code-block:: docker
#mailu.env file