Spaces:
Running
Running
File size: 811 Bytes
b2d9e47 | 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 | :7860 {
# Route WebSocket streams (iii-stream on 3112)
# Keep full path — iii-stream expects /stream/mem-live/viewer
handle /stream/* {
reverse_proxy localhost:3112 {
header_up Host localhost:3112
header_up Authorization "Bearer {env.AGENTMEMORY_SECRET}"
}
}
# Route REST API endpoints (iii-http on 3111)
# Caddy injects the secret so the dashboard viewer works without exposing it to the browser
handle /agentmemory/* {
reverse_proxy localhost:3111 {
header_up Host localhost:3111
header_up Authorization "Bearer {env.AGENTMEMORY_SECRET}"
}
}
# Route Viewer dashboard (on 3113)
handle {
reverse_proxy localhost:3113 {
header_up Host localhost:3113
}
}
}
|