Create config.yaml
Browse files- config.yaml +19 -0
config.yaml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 监听地址和端口
|
| 2 |
+
host: "0.0.0.0"
|
| 3 |
+
port: 7860 # Hugging Face Spaces 强制要求的端口
|
| 4 |
+
|
| 5 |
+
# 认证数据存储目录
|
| 6 |
+
# Hugging Face Spaces 建议使用 /data 目录,如果你开启了 Persistent Storage,这个目录的数据会持久保存
|
| 7 |
+
auth-dir: "/data"
|
| 8 |
+
|
| 9 |
+
# 远程管理配置 (Web UI)
|
| 10 |
+
remote-management:
|
| 11 |
+
allow-remote: true
|
| 12 |
+
# 请务必修改下面的密钥,用于登录管理后台
|
| 13 |
+
secret-key: "Set_Your_Secret_Password_Here"
|
| 14 |
+
|
| 15 |
+
# 是否禁用控制面板 (设为 false 开启 Web UI)
|
| 16 |
+
disable-control-panel: false
|
| 17 |
+
|
| 18 |
+
# 调试模式 (可选)
|
| 19 |
+
debug: false
|