feat: add setup

This commit is contained in:
h
2026-05-21 23:54:13 +02:00
commit 99af700ff2
15 changed files with 2754 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
CLOUDFLARE_API_TOKEN=
+2
View File
@@ -0,0 +1,2 @@
Caddyfile
.env
+33
View File
@@ -0,0 +1,33 @@
{
admin off
# acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
log {
format console
}
servers {
trusted_proxies cloudflare
client_ip_headers Cf-Connecting-Ip
}
}
<DOMAIN> {
redir /anthropic /anthropic/ 308
redir /mcp /mcp/ 308
redir /admin /admin/ 308
redir /md /md/ 308
handle_path /anthropic/* {
reverse_proxy host.docker.internal:62990
}
handle_path /mcp/* {
reverse_proxy host.docker.internal:62991
}
handle_path /admin/* {
reverse_proxy host.docker.internal:62992
}
handle_path /md/* {
reverse_proxy host.docker.internal:62993
}
}
+18
View File
@@ -0,0 +1,18 @@
services:
caddy:
image: ghcr.io/caddybuilds/caddy-cloudflare:latest
restart: unless-stopped
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
- "0.0.0.0:443:443/udp"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
env_file:
- .env
volumes:
caddy_data: