This is an old revision of the document!
Caddy
Caddy is a reverse proxy. It will automatically provision HTTPS certificates and generally make your life a lot easier when you're trying to host a new service.
It is run in a Docker container on CSS-mc.
Creating a new service
The Caddy container is part of the proxy-apps Docker network. If your new service is in a Docker container, then you should also add it to this network.
Caddy is configured using the Caddyfile. This file is located at /root/caddy-server/Caddyfile. To add a new service, add the following lines:
wiki.cssbham.com {
reverse_proxy dokuwiki:8080
}
changing wiki.cssbham.com to the host of your new service, and dokuwiki:8080 to the container name and port. Then restart the Caddy container.