habppyar commited on
Commit
2820f7c
·
verified ·
1 Parent(s): 231a414

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -16
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 strategy:
12
- - Mount a **Storage Bucket** to `/data` in Space Settings (Read & Write).
13
- - Only persist OpenCode critical dirs by symlinking:
14
  - `~/.config/opencode` -> `/data/opencode/config`
15
  - `~/.local/share/opencode` -> `/data/opencode/share`
16
 
17
- ## Required Secrets (Space Settings -> Secrets)
18
-
19
- - `OPENCODE_SERVER_PASSWORD` (required): enable HTTP Basic Auth
20
- - (optional) `OPENCODE_SERVER_USERNAME` (default: opencode)
21
-
22
- ## Port
23
-
24
- The app listens on `$PORT` (default 7860).
25
-
26
- ## Notes
27
 
28
- If `/data` is not mounted or not writable, the Space will still start but persistence will be disabled.
 
 
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`)