feat: add caddy config
This commit is contained in:
1 parent
17cd31c41e
commit
3aaa3c757f
9 files changed
+90
-8
No files matched your search
@@ -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