ljw 1 год назад
Родитель
Сommit
8c97cc8686
2 измененных файлов с 8 добавлено и 6 удалено
  1. 4 4
      README.md
  2. 4 2
      README_EN.md

+ 4 - 4
README.md

@@ -76,9 +76,7 @@
76 76
 
77 77
 ### Web Admin:
78 78
 
79
-**
80
-*使用前后端分离,提供用户友好的管理界面,主要用来管理和展示。前端代码在[rustdesk-api-web](https://github.com/lejianwen/rustdesk-api-web)
81
-***
79
+***使用前后端分离,提供用户友好的管理界面,主要用来管理和展示。前端代码在[rustdesk-api-web](https://github.com/lejianwen/rustdesk-api-web)***
82 80
 
83 81
 ***后台访问地址是`http://<your server>[:port]/_admin/`初次安装管理员为用户名密码为`admin` `admin`,请即时更改密码***
84 82
 
@@ -118,7 +116,9 @@
118 116
 
119 117
 ### 相关配置
120 118
 
121
-* 参考`conf/config.yaml`配置文件,修改相关配置。如果`gorm.type`是`sqlite`,则不需要配置mysql相关配置。
119
+* 参考`conf/config.yaml`配置文件,修改相关配置。
120
+* 如果`gorm.type`是`sqlite`,则不需要配置mysql相关配置。
121
+* 语言如果不设置默认为`zh-CN`
122 122
 
123 123
 ```yaml
124 124
 lang: "en"

+ 4 - 2
README_EN.md

@@ -121,8 +121,9 @@ installation are `admin` `admin`, please change the password immediately.***
121 121
 
122 122
 ### Configuration
123 123
 
124
-* Modify the configuration in `conf/config.yaml`. If `gorm.type` is set to `sqlite`, MySQL-related configurations are
125
-  not required.
124
+* Modify the configuration in `conf/config.yaml`. 
125
+* If `gorm.type` is set to `sqlite`, MySQL-related configurations are not required.
126
+* Language support: `en` and `zh-CN` are supported. The default is `zh-CN`.
126 127
 
127 128
 ```yaml
128 129
 lang: "en"
@@ -184,6 +185,7 @@ rustdesk:
184 185
 ```bash
185 186
 docker run -d --name rustdesk-api -p 21114:21114 \
186 187
 -v /data/rustdesk/api:/app/data \
188
+-e RUSTDESK_API_LANG=en \
187 189
 -e RUSTDESK_API_RUSTDESK_ID_SERVER=192.168.1.66:21116 \
188 190
 -e RUSTDESK_API_RUSTDESK_RELAY_SERVER=192.168.1.66:21117 \
189 191
 -e RUSTDESK_API_RUSTDESK_API_SERVER=http://192.168.1.66:21114 \