Files

25 lines
782 B
Markdown

# Caddy Reverse Proxy
Caddy container that terminates HTTPS (Let's Encrypt) and routes traffic to PaperClip.
## How it works
- `docker-compose.yml` mounts `/mnt/Jannik-Cloud-Volume-01/caddy/` into the container:
- `Caddyfile` — main config, imports all `*.caddy` fragments from `fragments/`
- `fragments/` — per-service reverse-proxy definitions, assembled by `deploy_script.sh`
- `data/`, `config/` — Caddy cert + state storage
- Only ports 80 and 443 are exposed to the host
- PaperClip itself binds only on the internal `paperclip-net` Docker network
## Adding new subdomains
Drop a `<name>.caddy` file into `services/<name>/` with:
```caddyfile
subdomain.orfel.de {
reverse_proxy <container-name>:<port>
}
```
The deploy script picks it up automatically.