Spaces:
Sleeping
Sleeping
Fix: 1008 Policy Violation (Origin) and update Token variable
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -17,6 +17,8 @@ COPY sync_memory.py /app/sync_memory.py
|
|
| 17 |
# Reset entrypoint to ensure we can run our shell command
|
| 18 |
ENTRYPOINT []
|
| 19 |
|
| 20 |
-
#
|
| 21 |
-
#
|
| 22 |
-
|
|
|
|
|
|
|
|
|
| 17 |
# Reset entrypoint to ensure we can run our shell command
|
| 18 |
ENTRYPOINT []
|
| 19 |
|
| 20 |
+
# Networking and Security Fixes:
|
| 21 |
+
# 1. MOLTBOT_GATEWAY_TOKEN: Uses your WEB_UI_TOKEN secret for authentication.
|
| 22 |
+
# 2. MOLTBOT_ALLOW_ORIGINS: Set to '*' to allow connections from the Hugging Face domain.
|
| 23 |
+
# 3. BIND: Explicitly binding to 0.0.0.0 via '--bind lan' to allow external health checks.
|
| 24 |
+
CMD ["/bin/sh", "-c", "python3 -u /app/sync_memory.py & export MOLTBOT_GATEWAY_TOKEN=$WEB_UI_TOKEN; export CLAWDBOT_GATEWAY_TOKEN=$WEB_UI_TOKEN; export OPENCLAW_GATEWAY_TOKEN=$WEB_UI_TOKEN; export MOLTBOT_ALLOW_ORIGINS='*'; node dist/index.js gateway --port 7860 --bind lan --allow-unconfigured"]
|