Search…
⌃K
Links

Setting a custom certificate

Tonic provides a certificate for https traffic, but you can also use your own certificate.
Tonic can use a user-provided certificate. The certificate must use the the PFX format and is named tonic.pfx.
To use your own certificate, you must make several changes to the docker-compose.yml file.
You must apply the changes to both the tonic_web_server and tonic_worker containers.

Environment variable

You must add the environment variable TONIC_PFX_PASSWORD, which contains the certificate password.
environment:
...
TONIC_PFX_PASSWORD: OEoGwptMU1f9LllumcFv

Volume mount

Tonic uses volume mounting to give the Tonic containers access to the certificate.
The certificate is placed on the host machine, then shared to the containers as a volume.
The certificate must be mapped to /certificates on the container.
volumes:
...
- /my-host-path:/certificates