Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • A ca.pem file which is the CA root certificate

  • A cert.pem file which is the backend certificate

  • A cert.key file which is the backend key

Those files should be (re)placed in the Dockers/SAMDistimages/caddy/certs/ directory.need to be installed into the HTTP / Caddy container, inside the /etc/ssl/caddy directory. To do so you can, amongst other methods, either mount a host’s local directory with docker-compose to overwrite it or simply copy some host’s local file inside the container.

Example of how to overwrite the container directory by mounting a volume:

Code Block
http:
  ...
  volumes:
    ...
    - /dir/on/host:/etc/ssl/caddy

Example of how to copy data into the (running) container:

Code Block
docker cp <file> http:/etc/ssl/caddy/<file>