docs: rename to pc-config-builder and add Caddy deployment guide
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# PC装机配置表
|
# PC Config Builder
|
||||||
|
|
||||||
基于HTML的网页版PC装机配置管理工具,支持编辑和查看两种模式。
|
基于HTML的网页版PC装机配置管理工具,支持编辑和查看两种模式。
|
||||||
|
|
||||||
@@ -41,6 +41,21 @@ python start_server.py
|
|||||||
# 打开 http://localhost:8080/editor.html
|
# 打开 http://localhost:8080/editor.html
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Caddy 部署
|
||||||
|
|
||||||
|
纯静态文件,无需后端,可直接部署在 Caddy 后面。
|
||||||
|
|
||||||
|
```caddy
|
||||||
|
pc.example.com {
|
||||||
|
root * /path/to/pc-config-builder
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
访问:`https://pc.example.com/?config=sample_config.json`
|
||||||
|
|
||||||
|
JSON 配置文件需与页面在同一服务器上(或配置 CORS)。编辑器页面仅供本地使用,无需部署。
|
||||||
|
|
||||||
## JSON配置格式
|
## JSON配置格式
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
|||||||
Reference in New Issue
Block a user