readme-update

This commit is contained in:
Eason010212
2023-12-26 22:27:48 +08:00
parent 8ee5861389
commit 9f91b586af

View File

@@ -63,4 +63,27 @@ https://gitee.com/bnu_mixly/mixio-linux-x86-dist/blob/darwin/mixio
8. git clone https://gitee.com/mixly2/mixio.git 8. git clone https://gitee.com/mixly2/mixio.git
9. cd mixio 9. cd mixio
10. npm i 10. npm i
11. node mixio.js debug 11. node mixio.js debug
## 服务器配置文件config/config.json
1. 首次运行服务器后会在相对应位置的config文件夹生成config.json
2. config.json内容可修改重启服务器后生效
3. MIXIO_HTTP_PORT - intHTTP端口默认为8080
4. MIXIO_HTTPS_PORT - intHTTP端口默认为8443
5. MAX_PROJECT_NUM_PER_USER - int每个用户的最大项目数默认为20
6. MAX_MESSAGE_PER_USER - int每个用户的最大离线消息存储数默认为1000
7. MAX_MESSAGE_PER_SECOND - int每个用户每秒的最大消息数默认为5
8. ALLOW_REGISTER - bool是否允许自主注册默认为true
9. ALLOW_HOOK - bool是否允许离线存储消息默认为true
10. OFFLINE_MODE - bool是否禁用天气/地图数据默认为true
11. BAIDU_MAP_AK - string百度地图客户端应用AKOFFLINE_MODE=false时必须配置默认为""
12. BAIDU_MAP_SERVER_AK - string百度地图服务端应用AKOFFLINE_MODE=false时必须配置默认为""
13. ADMIN_USERNAME - string管理后台用户名默认为"admin"
14. ADMIN_PASSWORD - string管理后台密码默认为"public"
15. STORAGE_ENGINE - string数据库引擎默认为"sqlite"
16. MYSQL_HOST - stringMySQL地址STORAGE_ENGINE="mysql"时必须配置),默认为"localhost"
17. MYSQL_PORT - intMySQL地址STORAGE_ENGINE="mysql"时必须配置默认为3306
18. MYSQL_USER - stringMySQL用户名STORAGE_ENGINE="mysql"时必须配置),默认为""
19. MYSQL_PASS - stringMySQL密码STORAGE_ENGINE="mysql"时必须配置),默认为""
20. MYSQL_DB - stringMySQL数据库名STORAGE_ENGINE="mysql"时必须配置),默认为"mixio",
21. FOOTER - string显示在首页的备案信息公网部署时请务必配置此项支持HTML语言请注意为双引号添加转义字符\"),默认为""