Spaces:
Running
Running
docs: restore DEV_MODE and JUPYTER_TOKEN to env table and terminal section
Browse filesOnly the frontmatter secrets block should have been removed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
README.md
CHANGED
|
@@ -254,6 +254,8 @@ With `CLOUDFLARE_WORKERS_TOKEN` set, HuggingMes can create a keep-alive worker t
|
|
| 254 |
| `SYNC_INTERVAL` | `600` | Backup frequency in seconds |
|
| 255 |
| `CLOUDFLARE_KEEPALIVE_ENABLED` | `true` | Set `false` to disable keep-awake worker |
|
| 256 |
| `TELEGRAM_MODE` | `webhook` | `webhook` or `polling` (webhook auto-configured from `SPACE_HOST`) |
|
|
|
|
|
|
|
| 257 |
| `WEBHOOK_URL` | — | Endpoint for POST JSON restart notifications |
|
| 258 |
| `GATEWAY_RESTART_DELAY` | `5` | Seconds between gateway restart attempts |
|
| 259 |
| `GATEWAY_MAX_RESTARTS` | `0` (unlimited) | Maximum gateway restart count before container exits |
|
|
@@ -266,6 +268,7 @@ HuggingMes includes a JupyterLab terminal at `/terminal/` for direct shell acces
|
|
| 266 |
|
| 267 |
The terminal is **on by default** — no extra configuration needed. Click **Open Terminal →** on the dashboard, then log in with your `GATEWAY_TOKEN`.
|
| 268 |
|
|
|
|
| 269 |
|
| 270 |
> **Security:** JupyterLab grants full shell access to the container. The terminal will not start if no `GATEWAY_TOKEN` is set.
|
| 271 |
|
|
@@ -289,7 +292,7 @@ docker compose up --build
|
|
| 289 |
- **Dashboard (`/`)**: Real-time management and monitoring.
|
| 290 |
- **Hermes App (`/app/`)**: Secure proxied access to the Hermes UI.
|
| 291 |
- **API (`/v1/*`)**: Proxied OpenAI-compatible agent API.
|
| 292 |
-
- **Terminal (`/terminal/`)**: JupyterLab terminal (auto-enabled when `GATEWAY_TOKEN` is set).
|
| 293 |
- **Health Check (`/health`)**: Readiness probe for HF and keep-alive.
|
| 294 |
- **Sync Engine**: Python background task for HF Dataset persistence.
|
| 295 |
|
|
|
|
| 254 |
| `SYNC_INTERVAL` | `600` | Backup frequency in seconds |
|
| 255 |
| `CLOUDFLARE_KEEPALIVE_ENABLED` | `true` | Set `false` to disable keep-awake worker |
|
| 256 |
| `TELEGRAM_MODE` | `webhook` | `webhook` or `polling` (webhook auto-configured from `SPACE_HOST`) |
|
| 257 |
+
| `DEV_MODE` | `true` | Set `false` to disable JupyterLab terminal at `/terminal/` |
|
| 258 |
+
| `JUPYTER_TOKEN` | *(uses `GATEWAY_TOKEN`)* | Override terminal password (optional) |
|
| 259 |
| `WEBHOOK_URL` | — | Endpoint for POST JSON restart notifications |
|
| 260 |
| `GATEWAY_RESTART_DELAY` | `5` | Seconds between gateway restart attempts |
|
| 261 |
| `GATEWAY_MAX_RESTARTS` | `0` (unlimited) | Maximum gateway restart count before container exits |
|
|
|
|
| 268 |
|
| 269 |
The terminal is **on by default** — no extra configuration needed. Click **Open Terminal →** on the dashboard, then log in with your `GATEWAY_TOKEN`.
|
| 270 |
|
| 271 |
+
To disable it, set `DEV_MODE=false`. To use a separate terminal password, set `JUPYTER_TOKEN` to a different value.
|
| 272 |
|
| 273 |
> **Security:** JupyterLab grants full shell access to the container. The terminal will not start if no `GATEWAY_TOKEN` is set.
|
| 274 |
|
|
|
|
| 292 |
- **Dashboard (`/`)**: Real-time management and monitoring.
|
| 293 |
- **Hermes App (`/app/`)**: Secure proxied access to the Hermes UI.
|
| 294 |
- **API (`/v1/*`)**: Proxied OpenAI-compatible agent API.
|
| 295 |
+
- **Terminal (`/terminal/`)**: JupyterLab terminal (auto-enabled when `GATEWAY_TOKEN` is set; set `DEV_MODE=false` to disable).
|
| 296 |
- **Health Check (`/health`)**: Readiness probe for HF and keep-alive.
|
| 297 |
- **Sync Engine**: Python background task for HF Dataset persistence.
|
| 298 |
|