You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 60bb1b6
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -107,8 +112,8 @@ Create a dedicated config directory (e.g., `~/vermeer-config/`) with `master.ini
107
112
Run with Docker:
108
113
109
114
```bash
110
-
# Master node
111
-
docker run -v ~/vermeer-config:/go/bin/config hugegraph/vermeer --env=master
115
+
# Master node (with Web UI enabled)
116
+
docker run -v ~/vermeer-config:/go/bin/config hugegraph/vermeer --env=master -auth token -auth_token_factor 1234
112
117
113
118
# Worker node
114
119
docker run -v ~/vermeer-config:/go/bin/config hugegraph/vermeer --env=worker
@@ -158,6 +163,7 @@ Configure parameters in `vermeer.sh`, then:
158
163
#### Prerequisites
159
164
160
165
- Go 1.23 or later
166
+
- Node.js/npm (for downloading UI assets)
161
167
-`curl` and `unzip` utilities (for downloading dependencies)
162
168
- Internet connection (for first-time setup)
163
169
@@ -226,10 +232,41 @@ task_strategy = 1
226
232
227
233
# Number of parallel tasks
228
234
task_parallel_num = 1
235
+
236
+
# Authentication mode (none or token)
237
+
# Set to "token" to enable Web UI and API authentication
238
+
auth = none
239
+
240
+
# Token authentication factor (required when auth=token)
241
+
auth_token_factor = 1234
229
242
```
230
243
231
244
**Note**: HugeGraph connection details (`pd_peers`, `server`, `graph`) are provided in the graph load API request, not in the configuration file. See [HugeGraph Integration](#hugegraph-integration) section for details.
232
245
246
+
### Generating Auth Token
247
+
248
+
When `auth=token` is enabled, you need to generate a token for login. Use the built-in token generator:
249
+
250
+
```bash
251
+
# Run with Go
252
+
go run tools/token/token_generator.go -user admin -space default -factor 1234 -i
253
+
254
+
# Or run in Docker (no local Go required)
255
+
docker run --rm -v $(pwd):/src -v $(pwd)/config:/src/config golang:1.23-alpine sh -c "cd /src && go run tools/token/token_generator.go -user admin -space default -factor 1234 -i"
256
+
```
257
+
258
+
Parameters:
259
+
-`-user` — Username (default: `foo`)
260
+
-`-space` — Graph space name (default: `bar`)
261
+
-`-factor` — Must match `auth_token_factor` in `master.ini`
2.**Login API**: `POST /api/v1/login` with body `{"token": "<token>"}` (sets cookie)
269
+
233
270
### Worker Configuration (`worker.ini`)
234
271
235
272
```ini
@@ -278,6 +315,8 @@ worker_group = default
278
315
279
316
Vermeer exposes a REST API on port `6688` (configurable in `master.ini`).
280
317
318
+
> **Note**: The Web UI (`/ui/*`) is only available when `auth=token` is configured. Set `auth_token_factor` in `master.ini` or pass `-auth token -auth_token_factor <value>` via command line.
Access the Web UI dashboard at `http://master-ip:6688/ui/` for:
544
+
Access the Web UI dashboard at `http://master-ip:6688/ui/master.html` for:
545
+
546
+
> **Note**: The Web UI requires `auth=token` in `master.ini` (or `-auth token` via command line). Without token authentication, the UI routes are not registered.
0 commit comments