Update README.md
Browse files
README.md
CHANGED
|
@@ -4,25 +4,17 @@ sdk: docker
|
|
| 4 |
app_port: 7860
|
| 5 |
---
|
| 6 |
|
| 7 |
-
## What this Space does
|
| 8 |
-
|
| 9 |
Runs `opencode web` on Hugging Face Spaces.
|
| 10 |
|
| 11 |
-
Persistence
|
| 12 |
-
- Mount a **Storage Bucket** to `/data`
|
| 13 |
-
-
|
| 14 |
- `~/.config/opencode` -> `/data/opencode/config`
|
| 15 |
- `~/.local/share/opencode` -> `/data/opencode/share`
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
- `
|
| 20 |
-
- (optional) `OPENCODE_SERVER_USERNAME` (default: opencode)
|
| 21 |
-
|
| 22 |
-
## Port
|
| 23 |
-
|
| 24 |
-
The app listens on `$PORT` (default 7860).
|
| 25 |
-
|
| 26 |
-
## Notes
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
| 4 |
app_port: 7860
|
| 5 |
---
|
| 6 |
|
|
|
|
|
|
|
| 7 |
Runs `opencode web` on Hugging Face Spaces.
|
| 8 |
|
| 9 |
+
Persistence:
|
| 10 |
+
- Mount a **Storage Bucket** to `/data` (Read & Write) in Space Settings.
|
| 11 |
+
- Persist only OpenCode critical dirs via symlinks:
|
| 12 |
- `~/.config/opencode` -> `/data/opencode/config`
|
| 13 |
- `~/.local/share/opencode` -> `/data/opencode/share`
|
| 14 |
|
| 15 |
+
Required Secrets:
|
| 16 |
+
- `OPENCODE_SERVER_PASSWORD` (required)
|
| 17 |
+
- `OPENCODE_SERVER_USERNAME` (optional, default: opencode)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
Optional:
|
| 20 |
+
- `OPENCODE_CONFIG_CONTENT` (a JSON string to write to `~/.config/opencode/opencode.json`)
|