forked from gzydong/go-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
90 lines (81 loc) · 1.48 KB
/
config.example.yaml
File metadata and controls
90 lines (81 loc) · 1.48 KB
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
# 项目配置信息
app:
env: dev
debug: false
juhe_key: "xxxxxxx"
admin_email:
-
public_key: |
-----BEGIN PUBLIC KEY-----
xxxxxxx
-----END PUBLIC KEY-----
private_key: |
-----BEGIN RSA PRIVATE KEY-----
xxxxx
-----END RSA PRIVATE KEY-----
server:
http: 9503
websocket: 9504
tcp: 9505
# 日志配置
log:
# 日志文件路径 *请使用绝对路径*
path: "/path/to/.../runtime"
# Redis 相关配置
redis:
host: 127.0.0.1:6379
auth: xxxxx
database: 0
# Mysql 数据库配置
mysql:
host: 127.0.0.1
port: 3306
charset: utf8mb4
username: root
password: xxxx
database: go_chat
collation: utf8mb4_general_ci
# Jwt 配置
jwt:
secret: 836c3fea9bba4e04d51bd0fbcc5
expires_time: 3600
buffer_time: 3600
openai:
key: "xxxx"
proxy: "https://api.openai.com"
# 跨域配置
cors:
origin: "*"
headers: "Content-Type,Cache-Control,User-Agent,Keep-Alive,DNT,AccessToken,Authorization"
methods: "OPTIONS,GET,POST,PUT,DELETE"
credentials: false
max_age: 600
# 文件系统配置【oss,qiniu 暂不支持】
filesystem:
default: local
local:
root:
domain:
oss:
access_id:
access_secret:
bucket:
endpoint:
security_token:
qiniu:
access_key:
secret_key:
bucket:
domain:
cos:
secret_id: ""
secret_key: ""
bucket: "im-xxx"
region: "ap-shanghai"
# 邮件配置
email:
host: smtp.163.com
port: 465
username: xxxxx
password: xxxxx
fromname: "Lumen IM 在线聊天"