CSS Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
applications:caddy [2025/03/28 23:35] – created rootapplications:caddy [2025/05/20 19:10] (current) – external edit 127.0.0.1
Line 1: Line 1:
-===== Caddy =====+====== 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: 
 + 
 +<code> 
 +wiki.cssbham.com { 
 +        reverse_proxy dokuwiki:8080 
 +
 +</code> 
 + 
 +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!
applications/caddy.1743204902.txt.gz · Last modified: (external edit)