Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added es-ES #1989

Merged
merged 6 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docker-compose/README.md
Original file line number Diff line number Diff line change
@@ -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
```
28 changes: 14 additions & 14 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docker-compose/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down
14 changes: 0 additions & 14 deletions docker-compose/readme.md

This file was deleted.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<html>
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"markdown-it-link-attributes": "^4.0.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.21",
"rimraf": "^4.2.0",
"rimraf": "^4.3.0",
"tailwindcss": "^3.2.7",
"typescript": "~4.9.5",
"vite": "^4.2.0",
Expand Down
Loading