feat: add caddy config
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{
|
||||
admin off
|
||||
# acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
|
||||
log {
|
||||
format console
|
||||
}
|
||||
|
||||
servers {
|
||||
trusted_proxies cloudflare
|
||||
client_ip_headers Cf-Connecting-Ip
|
||||
}
|
||||
}
|
||||
|
||||
<DOMAIN> {
|
||||
@backend path /api/* /mcp/*
|
||||
handle @backend {
|
||||
reverse_proxy beavergram-api:8080
|
||||
}
|
||||
|
||||
handle {
|
||||
root * /srv
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
}
|
||||
}
|
||||
|
||||
dev.<DOMAIN> {
|
||||
reverse_proxy beavergram-frontend:5173
|
||||
}
|
||||
Reference in New Issue
Block a user