1022
This commit is contained in:
38
nginx/conf.d/fastgpt.conf
Normal file
38
nginx/conf.d/fastgpt.conf
Normal file
@@ -0,0 +1,38 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name fastgpt.deepseak.icu;
|
||||
|
||||
location / {
|
||||
proxy_pass http://10.0.3.14:3000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
# 添加代理超时配置
|
||||
proxy_connect_timeout 60s;
|
||||
proxy_read_timeout 600s;
|
||||
proxy_send_timeout 600s;
|
||||
|
||||
# 支持大文件上传和API请求
|
||||
client_max_body_size 100M;
|
||||
proxy_buffering off;
|
||||
|
||||
# 启用gzip压缩
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_min_length 1024;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 6;
|
||||
gzip_types
|
||||
text/plain
|
||||
text/css
|
||||
text/xml
|
||||
text/javascript
|
||||
application/json
|
||||
application/javascript
|
||||
application/xml+rss
|
||||
application/atom+xml
|
||||
image/svg+xml;
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ server {
|
||||
server_name membank.deepseak.icu;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:10001;
|
||||
proxy_pass http://10.0.3.14:10001;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
@@ -61,7 +61,7 @@ http {
|
||||
client_max_body_size 5m;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3003;
|
||||
proxy_pass http://10.0.3.14:3003;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
@@ -84,7 +84,7 @@ http {
|
||||
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3004;
|
||||
proxy_pass http://10.0.3.14:3004;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
@@ -99,7 +99,7 @@ http {
|
||||
server {
|
||||
listen 80;
|
||||
server_name gitea.deepseak.icu;
|
||||
|
||||
client_max_body_size 200m;
|
||||
location / {
|
||||
proxy_pass http://10.0.3.14:3002;
|
||||
# 添加代理超时配置
|
||||
@@ -115,7 +115,7 @@ http {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
}
|
||||
client_max_body_size 50m;
|
||||
|
||||
}
|
||||
|
||||
# 增加一个空的server,用于申请证书
|
||||
|
||||
Reference in New Issue
Block a user