Dmitry Beresnev commited on
Commit ·
39c6e79
1
Parent(s): b784465
fix caddyfile and app
Browse files
Caddyfile
CHANGED
|
@@ -1,11 +1,7 @@
|
|
| 1 |
:7860
|
| 2 |
|
| 3 |
handle_path /openclaw/* {
|
| 4 |
-
reverse_proxy 127.0.0.1:
|
| 5 |
-
# Use HF secret OPENCLAW_GATEWAY_TOKEN at proxy layer so UI auth is stable.
|
| 6 |
-
header_up Authorization "Bearer {$OPENCLAW_GATEWAY_TOKEN}"
|
| 7 |
-
header_up X-OpenClaw-Token "{$OPENCLAW_GATEWAY_TOKEN}"
|
| 8 |
-
}
|
| 9 |
}
|
| 10 |
|
| 11 |
handle {
|
|
|
|
| 1 |
:7860
|
| 2 |
|
| 3 |
handle_path /openclaw/* {
|
| 4 |
+
reverse_proxy 127.0.0.1:18789
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
}
|
| 6 |
|
| 7 |
handle {
|
app.py
CHANGED
|
@@ -27,7 +27,7 @@ CONFIG_PATH = Path(os.getenv("OPENCLAW_CONFIG_PATH", "openclaw.json"))
|
|
| 27 |
ENV_EXAMPLE_PATH = Path("config/openclaw.env.example")
|
| 28 |
LOG_MAX_LINES = 300
|
| 29 |
OPENCLAW_STANDARD_UI_URL = os.getenv(
|
| 30 |
-
"OPENCLAW_STANDARD_UI_URL", "http://127.0.0.1:
|
| 31 |
)
|
| 32 |
OPENCLAW_STANDARD_UI_PUBLIC_URL = os.getenv("OPENCLAW_STANDARD_UI_PUBLIC_URL", "/openclaw/")
|
| 33 |
OPENCLAW_GATEWAY_TOKEN = os.getenv("OPENCLAW_GATEWAY_TOKEN", "")
|
|
|
|
| 27 |
ENV_EXAMPLE_PATH = Path("config/openclaw.env.example")
|
| 28 |
LOG_MAX_LINES = 300
|
| 29 |
OPENCLAW_STANDARD_UI_URL = os.getenv(
|
| 30 |
+
"OPENCLAW_STANDARD_UI_URL", "http://127.0.0.1:18789/"
|
| 31 |
)
|
| 32 |
OPENCLAW_STANDARD_UI_PUBLIC_URL = os.getenv("OPENCLAW_STANDARD_UI_PUBLIC_URL", "/openclaw/")
|
| 33 |
OPENCLAW_GATEWAY_TOKEN = os.getenv("OPENCLAW_GATEWAY_TOKEN", "")
|