6 Star 43 Fork 33

gzydong / go-chat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.example.yaml 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
gzydong 提交于 2024-01-02 23:09 . feat:优化代码
# 项目配置信息
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: "/path/xx/lumenim/"
# 公开的 bucket
bucket_public: "public"
# 私有的 bucket
bucket_private: "private"
endpoint: "im-cdn.gzydong.com"
ssl: false
minio:
secret_id: "xxxxxx"
secret_key: "xxxxx"
# 公开的 bucket
bucket_public: "im-static"
# 私有的 bucket
bucket_private: "im-private"
endpoint: "im-cdn.gzydong.com:9000"
ssl: false
# 邮件配置
email:
host: smtp.163.com
port: 465
username: xxxxx
password: xxxxx
fromname: "Lumen IM 在线聊天"
1
https://gitee.com/gzydong/go-chat.git
git@gitee.com:gzydong/go-chat.git
gzydong
go-chat
go-chat
master

搜索帮助