feat(*): init
This commit is contained in:
1
caddy/.env.example
Normal file
1
caddy/.env.example
Normal file
@@ -0,0 +1 @@
|
||||
CLOUDFLARE_API_TOKEN=
|
||||
2
caddy/.gitignore
vendored
Normal file
2
caddy/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
Caddyfile
|
||||
.env
|
||||
34
caddy/Caddyfile.example
Normal file
34
caddy/Caddyfile.example
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
admin off
|
||||
# acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
|
||||
log {
|
||||
format console
|
||||
}
|
||||
|
||||
servers {
|
||||
trusted_proxies cloudflare
|
||||
client_ip_headers Cf-Connecting-Ip
|
||||
}
|
||||
}
|
||||
|
||||
<DOMAIN> {
|
||||
handle /convex* {
|
||||
uri strip_prefix /convex
|
||||
reverse_proxy stealth-ai-relay-convex:3210
|
||||
}
|
||||
|
||||
handle /convex-http* {
|
||||
uri strip_prefix /convex-http
|
||||
reverse_proxy stealth-ai-relay-convex:3211
|
||||
}
|
||||
|
||||
handle /convex-dashboard* {
|
||||
uri strip_prefix /convex-dashboard
|
||||
reverse_proxy stealth-ai-relay-convex-dashboard:6791
|
||||
}
|
||||
|
||||
handle {
|
||||
reverse_proxy stealth-ai-relay-frontend:3000
|
||||
}
|
||||
}
|
||||
22
caddy/docker-compose.yml
Normal file
22
caddy/docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
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"
|
||||
networks:
|
||||
- caddy
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- caddy_data:/data
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
networks:
|
||||
caddy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
Reference in New Issue
Block a user