Update README.md
Browse files
README.md
CHANGED
|
@@ -5,6 +5,42 @@ colorFrom: purple
|
|
| 5 |
colorTo: red
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
colorTo: red
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
+
app_port: 8080
|
| 9 |
+
short_description: Hosted OpenWebUI
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# OpenWebUI with Data Synchronization
|
| 13 |
+
|
| 14 |
+
A self-hosted OpenWebUI instance with persistent data.
|
| 15 |
+
|
| 16 |
+
## Features
|
| 17 |
+
|
| 18 |
+
- 🤖 **OpenWebUI Interface**: Full-featured chat interface for AI models
|
| 19 |
+
- 🔄 **Automated Data Sync**: Automatic backup to GitHub repository every 12 hours
|
| 20 |
+
- 🔒 **Private Storage**: Secure data storage in your private GitHub repo
|
| 21 |
+
- 📊 **Persistent Data**: Never lose your conversations and settings
|
| 22 |
+
|
| 23 |
+
## Environment Variables
|
| 24 |
+
|
| 25 |
+
Set these in your Space's Repository secrets:
|
| 26 |
+
|
| 27 |
+
### Required
|
| 28 |
+
- `G_NAME`: Your GitHub repository (e.g., `username/repo-name`)
|
| 29 |
+
- `G_TOKEN`: GitHub Personal Access Token with repo access
|
| 30 |
+
|
| 31 |
+
## Setup Instructions
|
| 32 |
+
|
| 33 |
+
1. Create a private GitHub repository for data backup
|
| 34 |
+
2. Generate a GitHub Personal Access Token with repo permissions
|
| 35 |
+
3. Add the environment variables to your Space's Repository secrets
|
| 36 |
+
4. Deploy and enjoy persistent OpenWebUI!
|
| 37 |
+
|
| 38 |
+
## Data Synchronization
|
| 39 |
+
|
| 40 |
+
The system automatically:
|
| 41 |
+
- Syncs every 12 hours (London time)
|
| 42 |
+
- Backs up `webui.db` to your GitHub repository
|
| 43 |
+
- Creates versioned commits with timestamps
|
| 44 |
+
- Handles conflicts and retries on failures
|
| 45 |
+
|
| 46 |
+
Check out the [configuration reference](https://huggingface.co/docs/hub/spaces-config-reference) for more details.
|