Simford.Dong commited on
Commit ·
cfaf006
1
Parent(s): 2af8a49
Fix: set default GATEWAY_TOKEN and auth config
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -12,6 +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 |
|
| 16 |
# Expose the port (Hugging Face default)
|
| 17 |
EXPOSE 7860
|
|
@@ -25,6 +26,10 @@ if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
|
|
| 25 |
"gateway": {\n\
|
| 26 |
"mode": "local",\n\
|
| 27 |
"port": 7860,\n\
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
"controlUi": {\n\
|
| 29 |
"allowInsecureAuth": true\n\
|
| 30 |
}\n\
|
|
|
|
| 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
|
|
|
|
| 26 |
"gateway": {\n\
|
| 27 |
"mode": "local",\n\
|
| 28 |
"port": 7860,\n\
|
| 29 |
+
"auth": {\n\
|
| 30 |
+
"mode": "token",\n\
|
| 31 |
+
"token": "openclaw"\n\
|
| 32 |
+
},\n\
|
| 33 |
"controlUi": {\n\
|
| 34 |
"allowInsecureAuth": true\n\
|
| 35 |
}\n\
|