forked from AprilNEA/ChatGPT-Admin-Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yaml
97 lines (97 loc) · 3.23 KB
/
config.example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
debug: false # 如无必要,请设置为 false
site:
# 网站主标题 Main site title
title: 'ChatGPT Admin Web'
# 网站副标题下显示的微信公众号, 留空则不显示
# WeChat OA displayed under the subheading of the website, leave it blank, and it will not be displayed.
oa:
url:
# 当使用 Nginx 时,请将此处的地址留空 Leave this address blank when using Nginx
# 末尾不需要 / Not required at the end /
frontend: http://localhost:3000 # docker-compose 默认地址
backend: http://localhost:3001 # docker-compose 默认地址
port:
frontend: 3000
backend: 3001
# JWT 用户加密用户令牌 JWT User Encryption User Token
jwt:
# 可选用 ES256(推荐) 和 HS256
# ES256 (recommended) and HS256 are available.
algorithm: HS256
# HS256
secret: secret
# ES256 填写 JWK格式
# ES256 filled in JWK format
publicKey:
privateKey:
# Redis 数据库设置,如不使用外部数据库请勿修改
# Redis database settings, do not modify if you are not using an external database.
redis:
url: redis://localhost:6379/0
# Postgres 数据库设置,如不使用外部数据库请勿修改
# Postgres database settings, do not change if you are not using an external database
postgres:
url: postgresql://postgres:postgres@postgres:5432/postgres
openai:
# 对于一般的服务如 openai, api2d 等,你只需要填写 baseUrl
# For general services such as openai, api2d, etc., you only need to fill in the baseUrl.
# eg: https://api.openai.com/v1
baseUrl: 'https://renailu.deno.dev/v1'
# 如果你清楚完整的地址,请填写 endpointUrl
# If you know the full address, please fill in the endpointUrl
endpointUrl: ''
# 初始化 Keys, 仅会首次或数据库为空时读入
keys:
- 'sk-fff'
# 邮件发送配置 Mail Delivery Configuration
email:
# 使用的邮件服务,可选值:resend, mailgun, elastic
# The mail service to use, options: resend, mailgun, elastic
use:
domain: # 域名
# 发件人邮箱,不填则默认使用 no-reply@<domain>
# Sender's email, no-reply@<domain> is used by default if you don't fill it in.
sender:
# 文档:https://resend.com/docs/api-reference/api-keys/create-api-key
resend:
apikey:
mailgun:
apiKey:
elastic:
apiKey:
# 短信发送配置 SMS sending configuration
sms:
# 使用的短信服务,可选值:uni
# SMS service used, optional value: uni
use:
# 以下为短信服务商的配置,仅需填写所选 use 的配置
# The following is the configuration of the SMS service provider, only the configuration of the selected use needs to be filled out
uni: # https://unisms.apistd.com/console/
signature:
apiKey:
apiSecret: # 填写则启用 HMAC 模式
# 微信登录设置 WeChat Login Settings
wechat:
# Official OAuth
# 官方 OAuth
oauth:
appId:
appSecret:
redirectUrl:
# Via WeChat OA Code
mp:
appId:
appSecret:
# 收款配置 Receipt configuration
payment:
# Optional value: xunhu
use: 'xunhu'
xunhu: # 虎皮椒,文档:https://www.xunhupay.com/doc/prepare.html
# 店铺名称 Store Name
wapName:
appId:
appSecret:
# 填写服务地址 Fill in the service address
# eg: https://chat.xjt.lu
notifyUrl:
returnUrl: