onehub / Caddyfile
smgc's picture
Update Caddyfile
6b05778 verified
raw
history blame
382 Bytes
{
admin off
log {
output file /data/caddy.log
format console
level debug
}
}
:3001 {
@api {
path /api/*
}
handle @api {
uri strip_prefix /api
reverse_proxy localhost:3000
}
@api_root {
path /api
}
handle @api_root {
rewrite * /api/
reverse_proxy localhost:3000
}
}