You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +02:00
Update mount path to mailu/certs
- Thus, we write to /data/mailu/certs, since LE uses the same location - The dumper created cert.pem and key.pem - Mount /data/mailu/certs to certs, where nginx picks them up
This commit is contained in:
@@ -179,17 +179,17 @@ One such example is ``mailu/traefik-certdumper``, which has been adapted for use
|
|||||||
# Folder, which contains the acme.json
|
# Folder, which contains the acme.json
|
||||||
- "/data/traefik:/traefik"
|
- "/data/traefik:/traefik"
|
||||||
# Folder, where your.doma.in.crt and your.doma.in.key will be written
|
# Folder, where your.doma.in.crt and your.doma.in.key will be written
|
||||||
- "/data/traefik/certs:/output"
|
- "/data/mailu/certs:/output"
|
||||||
|
|
||||||
|
|
||||||
Assuming you have ``volume-mounted`` your ``acme.json`` put to ``/data/traefik`` on your host. The dumper will then write out ``/data/traefik/certs/cert.pem`` and ``/data/traefik/certs/key.pem`` whenever ``acme.json`` is updated.
|
Assuming you have ``volume-mounted`` your ``acme.json`` put to ``/data/traefik`` on your host. The dumper will then write out ``/data/mailu/certs/cert.pem`` and ``/data/mailu/certs/key.pem`` whenever ``acme.json`` is updated.
|
||||||
Yay! Now let’s mount this to our ``front`` container like:
|
Yay! Now let’s mount this to our ``front`` container like:
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- /data/traefik/certs/$TRAEFIK_DOMAIN.crt:/certs/cert.pem
|
- /data/mailu/certs:/certs
|
||||||
- /data/traefik/certs/$TRAEFIK_DOMAIN.key:/certs/key.pem
|
- /data/mailu/certs:/certs
|
||||||
|
|
||||||
This works, because we set ``TLS_FLAVOR=mail``, which picks up the key-certificate pair (e.g., ``cert.pem`` and ``key.pem``) from the certs folder in the root path (``/certs/``).
|
This works, because we set ``TLS_FLAVOR=mail``, which picks up the key-certificate pair (e.g., ``cert.pem`` and ``key.pem``) from the certs folder in the root path (``/certs/``).
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user