perf: 优化 web 组件配置文件

This commit is contained in:
吴小白 2023-08-04 11:35:03 +08:00
parent 2d02945bc8
commit d350aa74ef

View File

@ -28,6 +28,7 @@ server {
location /static/ {
root /opt/jumpserver/data/;
}
{{- if .Values.koko.enabled }}
location /koko/ {
proxy_pass {{ $koko }};
proxy_buffering off;
@ -44,6 +45,8 @@ server {
proxy_read_timeout 600;
send_timeout 6000;
}
{{- end }}
{{- if .Values.lion.enabled }}
location /lion/ {
proxy_pass {{ $lion }};
proxy_buffering off;
@ -60,6 +63,8 @@ server {
proxy_read_timeout 600;
send_timeout 6000;
}
{{- end }}
{{- if .Values.chen.enabled }}
location /chen/ {
proxy_pass {{ $chen }};
proxy_buffering off;
@ -75,6 +80,8 @@ server {
proxy_read_timeout 600;
send_timeout 6000;
}
{{- end }}
{{- if .Values.kael.enabled }}}
location /kael/ {
proxy_pass {{ $kael }};
proxy_buffering off;
@ -90,6 +97,8 @@ server {
proxy_read_timeout 600;
send_timeout 6000;
}
{{- end }}
{{ if .Values.core.enabled }}}
location /ws/ {
proxy_pass {{ $core }};
proxy_buffering off;
@ -107,6 +116,7 @@ server {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
{{- end }}
location / {
rewrite ^/(.*)$ /ui/$1 last;
}