Skip to content

Commit 9714cde

Browse files
authored
helm-chart: update nginx config (opea-project#607)
* change the nginx configuration Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
1 parent 8c926a2 commit 9714cde

File tree

7 files changed

+77
-0
lines changed

7 files changed

+77
-0
lines changed

helm-charts/audioqna/templates/nginx-deployment.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ data:
1515
alias /usr/share/nginx/html/index.html;
1616
}
1717
18+
proxy_connect_timeout 600;
19+
proxy_send_timeout 600;
20+
proxy_read_timeout 600;
21+
send_timeout 600;
22+
client_max_body_size 10G;
23+
1824
location / {
1925
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "audioqna-ui") }}:{{ index .Values "audioqna-ui" "service" "port" }};
2026
proxy_set_header Host $host;
@@ -29,6 +35,11 @@ data:
2935
proxy_set_header X-Real-IP $remote_addr;
3036
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
3137
proxy_set_header X-Forwarded-Proto $scheme;
38+
39+
proxy_buffering off;
40+
proxy_cache off;
41+
proxy_request_buffering off;
42+
gzip off;
3243
}
3344
}
3445

helm-charts/chatqna/templates/nginx-deployment.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ data:
1313
alias /usr/share/nginx/html/index.html;
1414
}
1515
16+
proxy_connect_timeout 600;
17+
proxy_send_timeout 600;
18+
proxy_read_timeout 600;
19+
send_timeout 600;
20+
client_max_body_size 10G;
21+
1622
location / {
1723
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "chatqna-ui") }}:{{ index .Values "chatqna-ui" "service" "port" }};
1824
proxy_set_header Host $host;
@@ -27,6 +33,11 @@ data:
2733
proxy_set_header X-Real-IP $remote_addr;
2834
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2935
proxy_set_header X-Forwarded-Proto $scheme;
36+
37+
proxy_buffering off;
38+
proxy_cache off;
39+
proxy_request_buffering off;
40+
gzip off;
3041
}
3142
3243
location /v1/dataprep {

helm-charts/codegen/templates/nginx-deployment.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ data:
1313
alias /usr/share/nginx/html/index.html;
1414
}
1515
16+
proxy_connect_timeout 600;
17+
proxy_send_timeout 600;
18+
proxy_read_timeout 600;
19+
send_timeout 600;
20+
client_max_body_size 10G;
21+
1622
location / {
1723
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "codegen-ui") }}:{{ index .Values "codegen-ui" "service" "port" }};
1824
proxy_set_header Host $host;
@@ -27,6 +33,11 @@ data:
2733
proxy_set_header X-Real-IP $remote_addr;
2834
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2935
proxy_set_header X-Forwarded-Proto $scheme;
36+
37+
proxy_buffering off;
38+
proxy_cache off;
39+
proxy_request_buffering off;
40+
gzip off;
3041
}
3142
}
3243

helm-charts/codetrans/templates/nginx-deployment.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ data:
1313
alias /usr/share/nginx/html/index.html;
1414
}
1515
16+
proxy_connect_timeout 600;
17+
proxy_send_timeout 600;
18+
proxy_read_timeout 600;
19+
send_timeout 600;
20+
client_max_body_size 10G;
21+
1622
location / {
1723
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "codetrans-ui") }}:{{ index .Values "codetrans-ui" "service" "port" }};
1824
proxy_set_header Host $host;
@@ -27,6 +33,11 @@ data:
2733
proxy_set_header X-Real-IP $remote_addr;
2834
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2935
proxy_set_header X-Forwarded-Proto $scheme;
36+
37+
proxy_buffering off;
38+
proxy_cache off;
39+
proxy_request_buffering off;
40+
gzip off;
3041
}
3142
}
3243

helm-charts/docsum/templates/nginx-deployment.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ data:
1313
alias /usr/share/nginx/html/index.html;
1414
}
1515
16+
proxy_connect_timeout 600;
17+
proxy_send_timeout 600;
18+
proxy_read_timeout 600;
19+
send_timeout 600;
20+
client_max_body_size 10G;
21+
1622
location / {
1723
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "docsum-ui") }}:{{ index .Values "docsum-ui" "service" "port" }};
1824
proxy_set_header Host $host;
@@ -27,6 +33,11 @@ data:
2733
proxy_set_header X-Real-IP $remote_addr;
2834
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2935
proxy_set_header X-Forwarded-Proto $scheme;
36+
37+
proxy_buffering off;
38+
proxy_cache off;
39+
proxy_request_buffering off;
40+
gzip off;
3041
}
3142
}
3243

helm-charts/faqgen/templates/nginx-deployment.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ data:
1313
alias /usr/share/nginx/html/index.html;
1414
}
1515
16+
proxy_connect_timeout 600;
17+
proxy_send_timeout 600;
18+
proxy_read_timeout 600;
19+
send_timeout 600;
20+
client_max_body_size 10G;
21+
1622
location / {
1723
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "faqgen-ui") }}:{{ index .Values "faqgen-ui" "service" "port" }};
1824
proxy_set_header Host $host;
@@ -27,6 +33,11 @@ data:
2733
proxy_set_header X-Real-IP $remote_addr;
2834
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2935
proxy_set_header X-Forwarded-Proto $scheme;
36+
37+
proxy_buffering off;
38+
proxy_cache off;
39+
proxy_request_buffering off;
40+
gzip off;
3041
}
3142
}
3243

helm-charts/visualqna/templates/nginx-deployment.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ data:
1313
alias /usr/share/nginx/html/index.html;
1414
}
1515
16+
proxy_connect_timeout 600;
17+
proxy_send_timeout 600;
18+
proxy_read_timeout 600;
19+
send_timeout 600;
20+
client_max_body_size 10G;
21+
1622
location / {
1723
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "visualqna-ui") }}:{{ index .Values "visualqna-ui" "service" "port" }};
1824
proxy_set_header Host $host;
@@ -27,6 +33,11 @@ data:
2733
proxy_set_header X-Real-IP $remote_addr;
2834
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2935
proxy_set_header X-Forwarded-Proto $scheme;
36+
37+
proxy_buffering off;
38+
proxy_cache off;
39+
proxy_request_buffering off;
40+
gzip off;
3041
}
3142
3243
}

0 commit comments

Comments
 (0)