wakapi.yourdomain.tld {
    encode zstd gzip

    header {
        Strict-Transport-Security "max-age=2592000; includeSubDomains"
    }
	
    log {
        output file /var/log/caddy/wakapi.dev.access.log
    }

    reverse_proxy http://[::1]:3000

    @api path_regexp "^/api.*"
    @notapi not path_regexp "^/api.*"

    push @notapi /assets/vendor/source-sans-3.css
    push @notapi /assets/vendor/petite-vue.min.js
    push @notapi /assets/vendor/chart.min.js
    push @notapi /assets/vendor/iconify.basic.min.js
    push @notapi /assets/images/logo.svg
}
