Skip to content

Commit

Permalink
helm-chart: update nginx config (#607)
Browse files Browse the repository at this point in the history
* change the nginx configuration

Signed-off-by: Ruoyu Ying <[email protected]>
(cherry picked from commit 9714cde)
  • Loading branch information
Ruoyu-y authored and chensuyue committed Nov 22, 2024
1 parent c39cc28 commit 5067b89
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 0 deletions.
11 changes: 11 additions & 0 deletions helm-charts/audioqna/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ data:
alias /usr/share/nginx/html/index.html;
}
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
client_max_body_size 10G;
location / {
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "audioqna-ui") }}:{{ index .Values "audioqna-ui" "service" "port" }};
proxy_set_header Host $host;
Expand All @@ -29,6 +35,11 @@ data:
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_buffering off;
proxy_cache off;
proxy_request_buffering off;
gzip off;
}
}
Expand Down
11 changes: 11 additions & 0 deletions helm-charts/chatqna/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ data:
alias /usr/share/nginx/html/index.html;
}
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
client_max_body_size 10G;
location / {
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "chatqna-ui") }}:{{ index .Values "chatqna-ui" "service" "port" }};
proxy_set_header Host $host;
Expand All @@ -27,6 +33,11 @@ data:
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_buffering off;
proxy_cache off;
proxy_request_buffering off;
gzip off;
}
location /v1/dataprep {
Expand Down
11 changes: 11 additions & 0 deletions helm-charts/codegen/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ data:
alias /usr/share/nginx/html/index.html;
}
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
client_max_body_size 10G;
location / {
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "codegen-ui") }}:{{ index .Values "codegen-ui" "service" "port" }};
proxy_set_header Host $host;
Expand All @@ -27,6 +33,11 @@ data:
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_buffering off;
proxy_cache off;
proxy_request_buffering off;
gzip off;
}
}
Expand Down
11 changes: 11 additions & 0 deletions helm-charts/codetrans/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ data:
alias /usr/share/nginx/html/index.html;
}
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
client_max_body_size 10G;
location / {
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "codetrans-ui") }}:{{ index .Values "codetrans-ui" "service" "port" }};
proxy_set_header Host $host;
Expand All @@ -27,6 +33,11 @@ data:
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_buffering off;
proxy_cache off;
proxy_request_buffering off;
gzip off;
}
}
Expand Down
11 changes: 11 additions & 0 deletions helm-charts/docsum/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ data:
alias /usr/share/nginx/html/index.html;
}
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
client_max_body_size 10G;
location / {
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "docsum-ui") }}:{{ index .Values "docsum-ui" "service" "port" }};
proxy_set_header Host $host;
Expand All @@ -27,6 +33,11 @@ data:
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_buffering off;
proxy_cache off;
proxy_request_buffering off;
gzip off;
}
}
Expand Down
11 changes: 11 additions & 0 deletions helm-charts/faqgen/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ data:
alias /usr/share/nginx/html/index.html;
}
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
client_max_body_size 10G;
location / {
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "faqgen-ui") }}:{{ index .Values "faqgen-ui" "service" "port" }};
proxy_set_header Host $host;
Expand All @@ -27,6 +33,11 @@ data:
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_buffering off;
proxy_cache off;
proxy_request_buffering off;
gzip off;
}
}
Expand Down
11 changes: 11 additions & 0 deletions helm-charts/visualqna/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ data:
alias /usr/share/nginx/html/index.html;
}
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
client_max_body_size 10G;
location / {
proxy_pass http://{{ include "ui.fullname" (index .Subcharts "visualqna-ui") }}:{{ index .Values "visualqna-ui" "service" "port" }};
proxy_set_header Host $host;
Expand All @@ -27,6 +33,11 @@ data:
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_buffering off;
proxy_cache off;
proxy_request_buffering off;
gzip off;
}
}
Expand Down

0 comments on commit 5067b89

Please sign in to comment.