Simford.Dong commited on
Commit
c37c186
·
1 Parent(s): 7d75ef4

Change gateway auth mode to password using SETUP_PASSWORD

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -12,7 +12,7 @@ RUN mkdir -p /root/.openclaw
12
  # Set up environment for Hugging Face Spaces
13
  ENV PORT=7860
14
  ENV OPENCLAW_GATEWAY_MODE=local
15
- ENV GATEWAY_TOKEN=openclaw
16
 
17
  # Expose the port (Hugging Face default)
18
  EXPOSE 7860
@@ -51,8 +51,8 @@ if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
51
  "bind": "lan",\n\
52
  "port": 7860,\n\
53
  "auth": {\n\
54
- "mode": "token",\n\
55
- "token": "openclaw"\n\
56
  },\n\
57
  "controlUi": {\n\
58
  "allowInsecureAuth": true\n\
 
12
  # Set up environment for Hugging Face Spaces
13
  ENV PORT=7860
14
  ENV OPENCLAW_GATEWAY_MODE=local
15
+ ENV OPENCLAW_GATEWAY_PASSWORD=${SETUP_PASSWORD}
16
 
17
  # Expose the port (Hugging Face default)
18
  EXPOSE 7860
 
51
  "bind": "lan",\n\
52
  "port": 7860,\n\
53
  "auth": {\n\
54
+ "mode": "password",\n\
55
+ "password": "${SETUP_PASSWORD}"\n\
56
  },\n\
57
  "controlUi": {\n\
58
  "allowInsecureAuth": true\n\