Add Docker deploy for Caddy production at cyd.smallzhiyuns.com.
Standalone Next image, local firmware sync volume, and docs for the existing host-network Caddy reverse proxy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
15
README.md
15
README.md
@@ -73,19 +73,26 @@ Create `meta.json` beside the `.bin` files:
|
||||
|
||||
Without `meta.json`, the catalog still works from `VERSION.txt`.
|
||||
|
||||
## Public deploy
|
||||
## Public deploy (Docker + Caddy)
|
||||
|
||||
Web Serial requires **HTTPS** (or localhost).
|
||||
Production: **https://cyd.smallzhiyuns.com**
|
||||
Server layout: `/home/dsx2016/docker/cydweb` + Caddy reverse proxy `127.0.0.1:3020`.
|
||||
|
||||
```powershell
|
||||
npm run sync:firmware
|
||||
# On server:
|
||||
cd /home/dsx2016/docker/cydweb
|
||||
docker compose up -d --build
|
||||
# Reload Caddy after Caddyfile changes:
|
||||
cd /home/dsx2016/docker/caddy && docker compose exec caddy caddy reload --config /etc/caddy/Caddyfile
|
||||
```
|
||||
|
||||
```env
|
||||
NEXT_PUBLIC_SITE_URL=https://your-domain.example
|
||||
NEXT_PUBLIC_SITE_URL=https://cyd.smallzhiyuns.com
|
||||
CYD_FIRMWARE_ROOT=/app/firmware
|
||||
```
|
||||
|
||||
Then `npm run build && npm start` (or any Next.js host). `firmware/` mirror is gitignored.
|
||||
Web Serial requires **HTTPS** (or localhost).
|
||||
|
||||
## Scripts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user