====== 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 [[infrastructure:servers:tex-drug-den]]. ===== Exposing a new service ===== If your HTTP service is running on [[infrastructure:servers:tex-drug-den]] and you want it to be publicly accessible on the Internet, then you'll want to expose it through Caddy. ==== Docker ==== 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 [[https://caddyserver.com/docs/caddyfile|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. Do not forget to update the DNS as well!