CI / Test (linux/amd64) (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Cross-build (darwin/amd64) (push) Waiting to run
CI / Cross-build (linux/amd64) (push) Waiting to run
CI / Cross-build (darwin/arm64) (push) Waiting to run
CI / Cross-build (linux/arm64) (push) Waiting to run
25 lines
304 B
Caddyfile
25 lines
304 B
Caddyfile
{
|
|
auto_https off
|
|
}
|
|
|
|
:{$PORT} {
|
|
root * /srv
|
|
|
|
handle /api/* {
|
|
reverse_proxy {$URAPT_UPSTREAM} {
|
|
header_up Host {upstream_hostport}
|
|
}
|
|
}
|
|
|
|
handle /apt/* {
|
|
reverse_proxy {$URAPT_UPSTREAM} {
|
|
header_up Host {upstream_hostport}
|
|
}
|
|
}
|
|
|
|
handle {
|
|
try_files {path} /index.html
|
|
file_server
|
|
}
|
|
}
|