Caddy-architectuur
Onderstaand diagram visualiseert de host-based routing uit je Caddy-configuratie.
Sequence diagram
sequenceDiagram
autonumber
participant Client
participant Caddy
participant Gitea as gitea:3000
participant Wiki as wiki:3000
participant Disk as /srv
Note over Client,Caddy: git.playground.respellion.nl
Client->>Caddy: GET / (Host: git.playground.respellion.nl)
Caddy->>Gitea: proxy request
Gitea-->>Caddy: response
Caddy-->>Client: response
Note over Client,Caddy: wiki.playground.respellion.nl
Client->>Caddy: GET / (Host: wiki.playground.respellion.nl)
Caddy->>Wiki: proxy request
Wiki-->>Caddy: response
Caddy-->>Client: response
Note over Client,Caddy: staging.playground.respellion.nl
Client->>Caddy: GET / (Host: staging.playground.respellion.nl)
Caddy-->>Client: 200 "staging"
Note over Client,Caddy: playground.respellion.nl
Client->>Caddy: GET / (Host: playground.respellion.nl)
Caddy-->>Client: serve static vanuit /srv (file_server)