MaxSainz2000 commited on
Commit
d77bf59
·
verified ·
1 Parent(s): a6fb580

Use WEB_UI_TOKEN secret for authentication

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -17,6 +17,6 @@ COPY sync_memory.py /app/sync_memory.py
17
  # Reset entrypoint to ensure we can run our shell command
18
  ENTRYPOINT []
19
 
20
- # Launch sync script in background, then start Moltbot Gateway
21
- # Use --bind lan to bind to 0.0.0.0 (required for Docker/HF Spaces)
22
- CMD ["/bin/sh", "-c", "python3 -u /app/sync_memory.py & node dist/index.js gateway --port 7860 --bind lan --allow-unconfigured"]
 
17
  # Reset entrypoint to ensure we can run our shell command
18
  ENTRYPOINT []
19
 
20
+ # Launch sync script in background, export the gateway token from our secret, then start Moltbot
21
+ # We export both possible variable names to ensure the gateway picks up the WEB_UI_TOKEN secret.
22
+ CMD ["/bin/sh", "-c", "python3 -u /app/sync_memory.py & export OPENCLAW_GATEWAY_TOKEN=$WEB_UI_TOKEN; export CLAWDBOT_GATEWAY_TOKEN=$WEB_UI_TOKEN; node dist/index.js gateway --port 7860 --bind lan --allow-unconfigured"]