Update dockerfile
This commit is contained in:
36
README.md
36
README.md
@@ -31,3 +31,39 @@ MEILI_URL=http://localhost:7700 MEILI_KEY=$MEILI_MASTER_KEY ./ingest/ingest_kiwi
|
||||
```
|
||||
- Reads `.env` for `OPENWEBUI_URL`, `OPENWEBUI_API_KEY`, `OPENWEBUI_KB_NAME`.
|
||||
- Uploads `*.txt`, `*.md`, `*.html` it finds in `./transcripts` and `./library/web` by default.
|
||||
|
||||
|
||||
## Generating required secrets
|
||||
|
||||
### 1. Meilisearch master key
|
||||
Meilisearch needs a strong master key (like a root password). Generate one locally:
|
||||
|
||||
```bash
|
||||
# On Linux or Mac with OpenSSL installed
|
||||
openssl rand -hex 32
|
||||
|
||||
# Example output (keep it secret, do not reuse this exact value):
|
||||
92e4d0d2e4c6f489a91dfc30b6fd6c985f6780ad827f1e7ce1bb3c6dc81d562b
|
||||
```
|
||||
|
||||
Then put it in your `.env`:
|
||||
|
||||
```dotenv
|
||||
MEILI_MASTER_KEY=92e4d0d2e4c6f489a91dfc30b6fd6c985f6780ad827f1e7ce1bb3c6dc81d562b
|
||||
MEILI_KEY=${MEILI_MASTER_KEY}
|
||||
```
|
||||
|
||||
### 2. OpenWebUI API key
|
||||
To allow PodX to push documents into your OpenWebUI Knowledge Base, create an API key:
|
||||
|
||||
1. Go to your running OpenWebUI (e.g. [http://localhost:3003](http://localhost:3003)).
|
||||
2. Log in with your admin account.
|
||||
3. Navigate to **Settings → API Keys**.
|
||||
4. Click **Generate new API key**, give it a name like `podx-worker`.
|
||||
5. Copy the generated key and add it to `.env`:
|
||||
|
||||
```dotenv
|
||||
OPENWEBUI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
```
|
||||
|
||||
If the key is ever leaked, revoke it in OpenWebUI and generate a new one.
|
||||
|
Reference in New Issue
Block a user