-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
509d765
commit 12cf7a0
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,7 @@ function getTipSidebar() { | |
'', | ||
'JboxShared', | ||
'JboxPublic', | ||
'Config' | ||
] | ||
}] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: 使用 YAML 配置文件 | ||
lang: zh-CN | ||
--- | ||
|
||
::: tip 说明 | ||
此功能只对控制台应用有效 | ||
::: | ||
|
||
## 使用 YAML 配置文件初始化设置 | ||
1. 新建一个 `.yml` 文件,输入以下内容,并调整设置。 | ||
|
||
```yaml | ||
# 监听地址,默认http://127.0.0.1:65472/ | ||
address: http://127.0.0.1:65472/ | ||
|
||
# 是否启用“交大空间” | ||
isPublicEnabled: true | ||
|
||
# 是否启用“他人的分享链接” | ||
isSharedEnabled: false | ||
|
||
# 访问模式: | ||
# Full 完全模式 | ||
# ReadOnly 只读模式 | ||
# ReadWrite 读写模式 | ||
# NoDelete 防止删除模式 | ||
accessMode: Full | ||
``` | ||
2. 使用参数启动程序 | ||
```bash | ||
./JboxWebdav.ConsoleApp -c config.yml | ||
``` | ||
|
||
3. 看到“配置文件读取成功!”字样则成功,否则请按提示检查。 |