NS-Genai commited on
Commit
a8147cf
·
verified ·
1 Parent(s): 490017f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -25,7 +25,7 @@ RUN npm install -g openclaw@latest
25
  # Expose the Hugging Face web port
26
  EXPOSE 7860
27
 
28
- # Create a robust startup script that pre-writes the OpenClaw config with your EXACT password
29
  RUN echo '#!/bin/bash\n\
30
  echo "Writing default OpenClaw configuration..."\n\
31
  cat <<EOF > /home/node/.openclaw/openclaw.json\n\
@@ -33,6 +33,7 @@ cat <<EOF > /home/node/.openclaw/openclaw.json\n\
33
  "gateway": {\n\
34
  "mode": "local",\n\
35
  "bind": "lan",\n\
 
36
  "auth": {\n\
37
  "token": "pelm-my-super-secret-password-123"\n\
38
  },\n\
 
25
  # Expose the Hugging Face web port
26
  EXPOSE 7860
27
 
28
+ # Create a robust startup script that whitelists the Hugging Face proxy!
29
  RUN echo '#!/bin/bash\n\
30
  echo "Writing default OpenClaw configuration..."\n\
31
  cat <<EOF > /home/node/.openclaw/openclaw.json\n\
 
33
  "gateway": {\n\
34
  "mode": "local",\n\
35
  "bind": "lan",\n\
36
+ "trustedProxies": ["10.0.0.0/8", "127.0.0.1"],\n\
37
  "auth": {\n\
38
  "token": "pelm-my-super-secret-password-123"\n\
39
  },\n\