Repository navigation
Expand file tree
/
Copy pathCaddyfile
More file actions
61 lines (55 loc) · 1.54 KB
/
Copy pathCaddyfile
File metadata and controls
61 lines (55 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
servers {
trusted_proxies static {$TRACECAT__TRUSTED_PROXY_CIDRS:127.0.0.1/32}
trusted_proxies_strict
}
}
{$BASE_DOMAIN} {
bind {$ADDRESS} # Binds to all available network interfaces if not specified
# MinIO S3 API proxy for presigned URLs.
# Presigned URLs are signed against the internal MinIO endpoint, so forward
# that host upstream or SigV4 signatures fail.
handle_path /s3/* {
reverse_proxy http://minio:9000 {
header_up Host {upstream_hostport}
header_up -Server
}
}
handle_path /api* {
reverse_proxy http://api:8000 {
header_up X-Forwarded-For {client_ip}
header_up X-Real-IP {client_ip}
header_up X-Forwarded-Host {host}
header_up X-Forwarded-Proto {scheme}
}
}
# MCP server (FastMCP serves at /mcp by default, so preserve the path)
handle /mcp* {
reverse_proxy http://mcp:8099 {
flush_interval -1
header_up X-Forwarded-For {client_ip}
header_up X-Real-IP {client_ip}
}
}
# MCP OAuth and discovery routes (served at root level by FastMCP)
@mcp_oauth_routes {
path /.well-known/oauth-authorization-server
path /.well-known/oauth-protected-resource /.well-known/oauth-protected-resource/*
path /authorize /authorize/*
path /token
path /register
path /consent /consent/*
path /auth/callback /auth/callback/*
}
handle @mcp_oauth_routes {
reverse_proxy http://mcp:8099 {
flush_interval -1
header_up X-Forwarded-For {client_ip}
header_up X-Real-IP {client_ip}
}
}
reverse_proxy http://ui:3000 {
header_up X-Forwarded-For {client_ip}
header_up X-Real-IP {client_ip}
}
}