diff --git a/docs/reverse.rst b/docs/reverse.rst index 65bca7cb..a5a12bfb 100644 --- a/docs/reverse.rst +++ b/docs/reverse.rst @@ -243,26 +243,11 @@ Refer to the Traefik documentation for more details. Override Mailu configuration ---------------------------- -If you do not have the resources for running a separate reverse proxy, you could override Mailu reverse proxy configuration by using a Docker volume. -Simply store your configuration file (Nginx format), in ``/mailu/overrides/nginx.conf`` for instance. -All *.conf files will be included in the main server block of Mailu in nginx which listens on port 80/443. +If you do not have the resources for running a separate reverse proxy, you could override Mailu reverse proxy configuration by using :ref:`an override`. +Simply store your configuration file (Nginx format), in ``/mailu/overrides/nginx.conf``. +All ``*.conf`` files will be included in the main server block of Mailu in nginx which listens on port 80/443. Add location blocks for any services that must be proxied. -Then modify your ``docker-compose.yml`` file and change the ``front`` section to add a mount: - -.. code-block:: nginx - - front: - build: nginx - image: mailu/nginx:$VERSION - restart: always - env_file: .env - ports: - [...] - volumes: - - "$ROOT/certs:/certs" - - "$ROOT/overrides/nginx:/overrides" - You can also download the example configuration files: - :download:`compose/traefik/docker-compose.yml`