docs: update wg-basic/yml
This commit is contained in:
parent
d38d8e430f
commit
8ead4e896d
@ -2,7 +2,7 @@
|
|||||||
title: 2.配置文件详解
|
title: 2.配置文件详解
|
||||||
description: yml配置文件详解
|
description: yml配置文件详解
|
||||||
published: true
|
published: true
|
||||||
date: 2021-10-22T06:18:19.554Z
|
date: 2021-10-22T06:23:39.083Z
|
||||||
tags: wg-basic
|
tags: wg-basic
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2021-07-29T06:22:48.973Z
|
dateCreated: 2021-07-29T06:22:48.973Z
|
||||||
@ -132,7 +132,29 @@ websocket:
|
|||||||
| websocket.port | port | 访问端口 | N | 1991 |
|
| websocket.port | port | 访问端口 | N | 1991 |
|
||||||
| websocket.context | context | 上下文 | N | websocket |
|
| websocket.context | context | 上下文 | N | websocket |
|
||||||
|
|
||||||
## 短信、邮件
|
## 短信
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# 短信服务
|
||||||
|
sms:
|
||||||
|
active: false
|
||||||
|
type: default
|
||||||
|
default-sms:
|
||||||
|
account: 账号
|
||||||
|
password: 密码
|
||||||
|
sign: 【标注】
|
||||||
|
template:
|
||||||
|
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒,若非本人操作,请忽略。'
|
||||||
|
```
|
||||||
|
|
||||||
|
| 配置 | 属性 | 说明 | 必填 | 默认值
|
||||||
|
|:-:|:-:|:-:|:-:|:-:|
|
||||||
|
| sms.active | active | 是否激活 | N | false |
|
||||||
|
| sms.type | type | 短信模块类型,目前只支持default | N | default |
|
||||||
|
| sms.default-sms.account | defaultSms.account | 发送短信的账号 | Y | |
|
||||||
|
| sms.default-sms.password | defaultSms.password | 发送短信的密码 | Y | |
|
||||||
|
| sms.default-sms.sign | defaultSms.password | 签名,必须用【】包含 | Y | |
|
||||||
|
| sms.default-sms.template.verification-code | template.verficationCode | 验证码模板,{sign} 会替换配置的签名,{content} 会替换为短信内容 | Y | |
|
||||||
|
|
||||||
# 完整示例
|
# 完整示例
|
||||||
```yml
|
```yml
|
||||||
|
Loading…
Reference in New Issue
Block a user