mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
Merge #2185
2185: Update reverse.rst r=mergify[bot] a=audioscavenger updated the external proxy location pattern and added a note: do not add a ``/`` at the end ## What type of PR? documentation ## What does this PR do? ### Related issue(s) - did not bother to create an issue ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [ ] i would like to add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file but i don't know how Co-authored-by: Eric <dev@derewonko.com>
This commit is contained in:
commit
921cab60de
@ -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
|
||||
|
1
towncrier/newsfragments/2185.doc
Normal file
1
towncrier/newsfragments/2185.doc
Normal file
@ -0,0 +1 @@
|
||||
remove the / in the location to avoid http 404
|
Loading…
x
Reference in New Issue
Block a user