mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-10-19 01:54:24 +00:00
Added es-ES (#1989)
* Additional English translations Provide an English version of the readme, and add a few translations that were missing elsewhere * Use browser language by default * Support 'en' and 'vi' as languages * Fixed: Browserslist: caniuse-lite is outdated. Full message was: Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme * Added es-ES These changes were originally from https://github.com/rasta26/chatgpt-web although I did tweak the translations a bit. --------- Co-authored-by: Ed Burnette <ed.burnette@hiddenmind.ai>
This commit is contained in:
14
docker-compose/README.md
Normal file
14
docker-compose/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
### docker-compose Deployment Tutorial
|
||||
-Put the packaged front-end files in the `nginx/html` directory
|
||||
- ```shell
|
||||
# start up
|
||||
docker-compose up -d
|
||||
```
|
||||
- ```shell
|
||||
# Check the running status
|
||||
docker ps
|
||||
```
|
||||
- ```shell
|
||||
# end run
|
||||
docker-compose down
|
||||
```
|
@@ -3,35 +3,35 @@ version: '3'
|
||||
services:
|
||||
app:
|
||||
container_name: chatgpt-web
|
||||
image: chenzhaoyu94/chatgpt-web # 总是使用latest,更新时重新pull该tag镜像即可
|
||||
image: chenzhaoyu94/chatgpt-web # Always use latest, just pull the tag image again when updating
|
||||
ports:
|
||||
- 3002:3002
|
||||
environment:
|
||||
# 二选一
|
||||
# pick one of two
|
||||
OPENAI_API_KEY:
|
||||
# 二选一
|
||||
# pick one of two
|
||||
OPENAI_ACCESS_TOKEN:
|
||||
# API接口地址,可选,设置 OPENAI_API_KEY 时可用
|
||||
# API interface address, optional, available when OPENAI_API_KEY is set
|
||||
OPENAI_API_BASE_URL:
|
||||
# API模型,可选,设置 OPENAI_API_KEY 时可用
|
||||
# API model, optional, available when OPENAI_API_KEY is set
|
||||
OPENAI_API_MODEL:
|
||||
# 反向代理,可选
|
||||
# reverse proxy, optional
|
||||
API_REVERSE_PROXY:
|
||||
# 访问权限密钥,可选
|
||||
# Access permission key, optional
|
||||
AUTH_SECRET_KEY:
|
||||
# 每小时最大请求次数,可选,默认无限
|
||||
# The maximum number of requests per hour, optional, default unlimited
|
||||
MAX_REQUEST_PER_HOUR: 0
|
||||
# 超时,单位毫秒,可选
|
||||
# timeout in milliseconds, optional
|
||||
TIMEOUT_MS: 60000
|
||||
# Socks代理,可选,和 SOCKS_PROXY_PORT 一起时生效
|
||||
# Socks proxy, optional, works with SOCKS_PROXY_PORT
|
||||
SOCKS_PROXY_HOST:
|
||||
# Socks代理端口,可选,和 SOCKS_PROXY_HOST 一起时生效
|
||||
# Socks proxy port, optional, effective when combined with SOCKS_PROXY_HOST
|
||||
SOCKS_PROXY_PORT:
|
||||
# Socks代理用户名,可选,和 SOCKS_PROXY_HOST & SOCKS_PROXY_PORT 一起时生效
|
||||
# Socks proxy username, optional, effective when combined with SOCKS_PROXY_HOST & SOCKS_PROXY_PORT
|
||||
SOCKS_PROXY_USERNAME:
|
||||
# Socks代理密码,可选,和 SOCKS_PROXY_HOST & SOCKS_PROXY_PORT 一起时生效
|
||||
# Socks proxy password, optional, effective when combined with SOCKS_PROXY_HOST & SOCKS_PROXY_PORT
|
||||
SOCKS_PROXY_PASSWORD:
|
||||
# HTTPS_PROXY 代理,可选
|
||||
# HTTPS_PROXY proxy, optional
|
||||
HTTPS_PROXY:
|
||||
nginx:
|
||||
container_name: nginx
|
||||
|
@@ -4,7 +4,7 @@ server {
|
||||
charset utf-8;
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
|
||||
# 防止爬虫抓取
|
||||
# Prevent crawlers from crawling
|
||||
if ($http_user_agent ~* "360Spider|JikeSpider|Spider|spider|bot|Bot|2345Explorer|curl|wget|webZIP|qihoobot|Baiduspider|Googlebot|Googlebot-Mobile|Googlebot-Image|Mediapartners-Google|Adsbot-Google|Feedfetcher-Google|Yahoo! Slurp|Yahoo! Slurp China|YoudaoBot|Sosospider|Sogou spider|Sogou web spider|MSNBot|ia_archiver|Tomato Bot|NSPlayer|bingbot")
|
||||
{
|
||||
return 403;
|
||||
@@ -16,7 +16,7 @@ server {
|
||||
}
|
||||
|
||||
location /api {
|
||||
proxy_set_header X-Real-IP $remote_addr; #转发用户IP
|
||||
proxy_set_header X-Real-IP $remote_addr; #Forward user IP
|
||||
proxy_pass http://app:3002;
|
||||
}
|
||||
|
||||
|
@@ -1,14 +0,0 @@
|
||||
### docker-compose 部署教程
|
||||
- 将打包好的前端文件放到 `nginx/html` 目录下
|
||||
- ```shell
|
||||
# 启动
|
||||
docker-compose up -d
|
||||
```
|
||||
- ```shell
|
||||
# 查看运行状态
|
||||
docker ps
|
||||
```
|
||||
- ```shell
|
||||
# 结束运行
|
||||
docker-compose down
|
||||
```
|
Reference in New Issue
Block a user