Spaces:
Paused
Paused
fix: inject AGENTMEMORY_SECRET via Caddy so dashboard viewer works
Browse files
Caddyfile
CHANGED
|
@@ -3,13 +3,16 @@
|
|
| 3 |
handle /stream/* {
|
| 4 |
reverse_proxy localhost:3112 {
|
| 5 |
header_up Host localhost:3112
|
|
|
|
| 6 |
}
|
| 7 |
}
|
| 8 |
|
| 9 |
# Route REST API endpoints (iii-http on 3111)
|
|
|
|
| 10 |
handle /agentmemory/* {
|
| 11 |
reverse_proxy localhost:3111 {
|
| 12 |
header_up Host localhost:3111
|
|
|
|
| 13 |
}
|
| 14 |
}
|
| 15 |
|
|
|
|
| 3 |
handle /stream/* {
|
| 4 |
reverse_proxy localhost:3112 {
|
| 5 |
header_up Host localhost:3112
|
| 6 |
+
header_up Authorization "Bearer {env.AGENTMEMORY_SECRET}"
|
| 7 |
}
|
| 8 |
}
|
| 9 |
|
| 10 |
# Route REST API endpoints (iii-http on 3111)
|
| 11 |
+
# Caddy injects the secret so the dashboard viewer works without exposing it to the browser
|
| 12 |
handle /agentmemory/* {
|
| 13 |
reverse_proxy localhost:3111 {
|
| 14 |
header_up Host localhost:3111
|
| 15 |
+
header_up Authorization "Bearer {env.AGENTMEMORY_SECRET}"
|
| 16 |
}
|
| 17 |
}
|
| 18 |
|