Skip to content

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.labs.respellion.tech
    Client->>Caddy: GET / (Host: git.labs.respellion.tech)
    Caddy->>Gitea: proxy request
    Gitea-->>Caddy: response
    Caddy-->>Client: response

    Note over Client,Caddy: wiki.labs.respellion.tech
    Client->>Caddy: GET / (Host: wiki.labs.respellion.tech)
    Caddy->>Wiki: proxy request
    Wiki-->>Caddy: response
    Caddy-->>Client: response

    Note over Client,Caddy: staging.labs.respellion.tech
    Client->>Caddy: GET / (Host: staging.labs.respellion.tech)
    Caddy-->>Client: 200 "staging"

    Note over Client,Caddy: labs.respellion.tech
    Client->>Caddy: GET / (Host: labs.respellion.tech)
    Caddy-->>Client: serve static vanuit /srv (file_server)