Sync latest web IM fixes
This commit is contained in:
+9
-16
@@ -50,27 +50,20 @@ im-server HTTP/API: http://127.0.0.1:18000
|
||||
im-server admin: http://127.0.0.1:18080
|
||||
```
|
||||
|
||||
`im-server admin`、IM 数据库和应用数据库配置通过 PHP-FPM 环境变量提供:
|
||||
`im-server admin` 的地址和密钥在:
|
||||
|
||||
```text
|
||||
public/api/im_web_bootstrap.php
|
||||
```
|
||||
|
||||
需要配置:
|
||||
|
||||
```text
|
||||
IM_ADMIN_URL=http://127.0.0.1:18080
|
||||
IM_ADMIN_SECRET=请填写管理端密钥
|
||||
IM_DB_DSN=mysql:host=127.0.0.1;port=3306;dbname=wfchat;charset=utf8mb4
|
||||
IM_DB_USER=请填写数据库用户
|
||||
IM_DB_PASSWORD=请填写数据库密码
|
||||
IM_APP_DB_DSN=mysql:host=127.0.0.1;port=3306;dbname=appdata;charset=utf8mb4
|
||||
IM_APP_DB_USER=请填写应用数据库用户
|
||||
IM_APP_DB_PASSWORD=请填写应用数据库密码
|
||||
IM_DB_TIMEZONE=Asia/Bangkok
|
||||
```
|
||||
|
||||
请在 PHP-FPM pool、容器 secret 或部署平台的环境变量中配置,禁止把真实密钥提交到仓库。
|
||||
默认配置:
|
||||
|
||||
```php
|
||||
const IM_ADMIN_URL = 'http://127.0.0.1:18080';
|
||||
const IM_ADMIN_SECRET = '123456';
|
||||
```
|
||||
|
||||
如果生产环境 admin 端口或 secret 不同,需要同步修改该文件后重新构建。
|
||||
|
||||
## 构建
|
||||
|
||||
|
||||
Reference in New Issue
Block a user