{$LABPANEL_DOMAIN:panel.locinode.xyz} {
    encode zstd gzip

    @api path /api/*
    handle @api {
        reverse_proxy control:8080
    }

    handle {
        reverse_proxy web:80
    }

    header {
        Strict-Transport-Security "max-age=31536000; includeSubDomains"
        X-Content-Type-Options "nosniff"
        X-Frame-Options "DENY"
        Referrer-Policy "same-origin"
        -Server
    }
}

apps.locinode.xyz {
    encode zstd gzip
    reverse_proxy catalog-api:8080
    header -Server
}

# Routes created by the LabPanel agent on the control VPS are loaded here.
# The glob is intentionally empty until the control VPS is enrolled as a node.
import /etc/caddy/labpanel-sites/*.caddy
