habppyar commited on
Commit
cb7ceba
·
verified ·
1 Parent(s): 110b7ec

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -14
README.md CHANGED
@@ -1,23 +1,23 @@
1
  ---
2
- title: OpenCode Web (Persistent via HF Storage Bucket)
3
  sdk: docker
4
  app_port: 7860
5
  ---
6
 
7
- This Space runs `opencode web`.
8
 
9
- Persistence strategy:
10
- - Do NOT rely on writing to `/data` (bucket mount can be read-only for UID=1000).
11
- - Persist by periodically uploading backups to a **Hugging Face Storage Bucket** using `hf buckets cp`.
12
 
13
- ### Required Secrets
14
- - `OPENCODE_SERVER_PASSWORD` (required)
15
- - `HF_TOKEN` (required for persistence)
16
 
17
- ### Required Variables
18
- - `HF_BUCKET_ID` (example: `habppyar/ocweb-storage`)
19
 
20
- ### Optional Variables
21
- - `BACKUP_INTERVAL_SECONDS` (default: 120)
22
- - `BUCKET_PREFIX` (default: `opencode-backup`)
23
- - `BACKUP_AUTH_JSON` (default: 0) # set to 1 ONLY if you accept storing auth.json in bucket
 
1
  ---
2
+ title: OpenCode Web (Persist to HF Bucket via hf CLI)
3
  sdk: docker
4
  app_port: 7860
5
  ---
6
 
7
+ Runs `opencode web` on Hugging Face Spaces.
8
 
9
+ Persistence:
10
+ - We persist by periodically uploading backups to a **Hugging Face Storage Bucket** using `hf buckets cp`.
11
+ - We do NOT rely on writing to the mounted `/data` path because it can be mounted via FUSE and not writable by UID=1000.
12
 
13
+ Required Secrets:
14
+ - OPENCODE_SERVER_PASSWORD
15
+ - HF_TOKEN (must have read/write permissions to your bucket repo)
16
 
17
+ Required Variables:
18
+ - HF_BUCKET_ID (e.g. habppyar/ocweb-storage)
19
 
20
+ Optional:
21
+ - BACKUP_INTERVAL_SECONDS (default 120)
22
+ - BUCKET_PREFIX (default opencode-backup)
23
+ - BACKUP_AUTH_JSON (default 0; set to 1 only if you accept storing auth.json in the bucket)