修改 nginx api 代理超时时间

This commit is contained in:
whyour 2024-01-01 17:14:57 +08:00
parent a7562259d1
commit 71e7ba9cb6
3 changed files with 26 additions and 14 deletions

View File

@ -22,6 +22,10 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://publicApi/api/;
proxy_buffering off;
proxy_redirect default;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
proxy_read_timeout 1800;
}
location QL_BASE_URLapi/ {
@ -30,6 +34,10 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://baseApi/api/;
proxy_buffering off;
proxy_redirect default;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
proxy_read_timeout 1800;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
@ -41,6 +49,10 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://baseApi/open/;
proxy_buffering off;
proxy_redirect default;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
proxy_read_timeout 1800;
}
gzip on;

View File

@ -110,7 +110,7 @@
"@types/cross-spawn": "^6.0.2",
"@types/express": "^4.17.13",
"@types/express-jwt": "^6.0.4",
"@types/file-saver": "^2.0.5",
"@types/file-saver": "2.0.2",
"@types/js-yaml": "^4.0.5",
"@types/jsonwebtoken": "^8.5.8",
"@types/lodash": "^4.14.185",
@ -140,7 +140,7 @@
"compression-webpack-plugin": "9.2.0",
"concurrently": "^7.0.0",
"react-hotkeys-hook": "^4.4.1",
"file-saver": "^2.0.5",
"file-saver": "2.0.2",
"lint-staged": "^13.0.3",
"monaco-editor": "0.33.0",
"nodemon": "^3.0.1",

View File

@ -1,9 +1,5 @@
lockfileVersion: '6.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
dependencies:
'@grpc/grpc-js':
specifier: ^1.8.13
@ -167,8 +163,8 @@ devDependencies:
specifier: ^6.0.4
version: 6.0.4
'@types/file-saver':
specifier: ^2.0.5
version: 2.0.5
specifier: 2.0.2
version: 2.0.2
'@types/js-yaml':
specifier: ^4.0.5
version: 4.0.5
@ -254,8 +250,8 @@ devDependencies:
specifier: ^7.0.0
version: 7.6.0
file-saver:
specifier: ^2.0.5
version: 2.0.5
specifier: 2.0.2
version: 2.0.2
lint-staged:
specifier: ^13.0.3
version: 13.2.2
@ -4879,8 +4875,8 @@ packages:
'@types/qs': 6.9.7
'@types/serve-static': 1.15.1
/@types/file-saver@2.0.5:
resolution: {integrity: sha512-zv9kNf3keYegP5oThGLaPk8E081DFDuwfqjtiTzm6PoxChdJ1raSuADf2YGCVIyrSynLrgc8JWv296s7Q7pQSQ==}
/@types/file-saver@2.0.2:
resolution: {integrity: sha512-xbqnZmGrCEqi/KUzOkeUSe77p7APvLuyellGaAoeww3CHJ1AbjQWjPSCFtKIzZn8L7LpEax4NXnC+gfa6nM7IA==}
dev: true
/@types/graceful-fs@4.1.6:
@ -8925,8 +8921,8 @@ packages:
flat-cache: 3.0.4
dev: true
/file-saver@2.0.5:
resolution: {integrity: sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==}
/file-saver@2.0.2:
resolution: {integrity: sha512-Wz3c3XQ5xroCxd1G8b7yL0Ehkf0TC9oYC6buPFkNnU9EnaPlifeAFCyCh+iewXTyFRcg0a6j3J7FmJsIhlhBdw==}
dev: true
/file-stream-rotator@0.6.1:
@ -16452,3 +16448,7 @@ packages:
- bluebird
- supports-color
dev: false
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false