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
Copy file name to clipboardExpand all lines: README.md
+23-10Lines changed: 23 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,22 +47,31 @@ Features:
47
47
-**Webhooks** — instant sync on push via `/webhooks/github`, `/webhooks/gitlab`, `/webhooks/slack`, `/webhooks/confluence`
48
48
-**Health checks** — `GET /health` for Docker/K8s readiness probes
49
49
-**Sync history** — `GET /history` queryable log of all syncs
50
-
-**On-demand sync** — `POST /sync/{source}` to trigger immediately
50
+
-**On-demand sync** — `POST /sync/{identifier}` trigger by `name` or `kb-id`
51
+
-**API key auth** — set `OIKB_API_KEY` to secure endpoints (Docker secrets `_FILE` supported)
51
52
-**OpenAPI tool server** — add `http://oikb:8080` as a Tool Server in Open WebUI (Settings → Connections) and let the LLM trigger syncs, check status, and query history
52
53
53
54
```yaml
54
55
# .oikb.yaml
55
56
sources:
56
-
- source: github:owner/repo
57
-
kb-id: team-wiki
57
+
- name: wiki
58
+
source: github:owner/repo
59
+
kb-id: 8f3a2b1c-...
58
60
interval: 1h
59
61
webhook: true
60
62
61
-
- source: confluence:ENG
62
-
kb-id: handbook
63
+
- name: handbook
64
+
source: confluence:ENG
65
+
kb-id: 4e7d9a0f-...
63
66
interval: 6h
64
67
```
65
68
69
+
```bash
70
+
oikb sync --name wiki # CLI: sync a specific entry
71
+
curl -X POST /sync/wiki # API: trigger by name
72
+
curl -X POST /sync/8f3a2b1c-.. # API: trigger by kb-id
73
+
```
74
+
66
75
### Docker Compose
67
76
68
77
```yaml
@@ -77,6 +86,7 @@ services:
77
86
environment:
78
87
- OPEN_WEBUI_URL=http://open-webui:8080
79
88
- OPEN_WEBUI_API_KEY=${OPEN_WEBUI_API_KEY}
89
+
- OIKB_API_KEY=${OIKB_API_KEY}
80
90
volumes:
81
91
- ./.oikb.yaml:/app/.oikb.yaml:ro
82
92
command: daemon
@@ -120,10 +130,12 @@ Route files from a single source to different Knowledge Bases by glob pattern:
120
130
121
131
```yaml
122
132
sources:
123
-
- source: github:owner/repo
133
+
- name: wiki
134
+
source: github:owner/repo
135
+
kb-id: 8f3a2b1c-...
124
136
routes:
125
-
"docs/**/*.md": docs-kb
126
-
"src/**": code-kb
137
+
"docs/**/*.md": docs-kb-id
138
+
"src/**": code-kb-id
127
139
```
128
140
129
141
## Selective Sync Filters
@@ -132,8 +144,9 @@ Narrow what gets synced with include/exclude globs:
0 commit comments