mirror of
https://github.com/jumpserver/helm-charts.git
synced 2025-08-28 11:32:26 +00:00
commit
b0f99255c6
@ -1,7 +1,6 @@
|
||||
{{ $koko := printf "http://%s-%s:%s" (include "jumpserver.fullname" $) "jms-koko" ($.Values.koko.service.web.port | toString) }}
|
||||
{{ $lion := printf "http://%s-%s:%s" (include "jumpserver.fullname" $) "jms-lion" ($.Values.lion.service.web.port | toString) }}
|
||||
{{ $coreweb := printf "http://%s-%s:%s" (include "jumpserver.fullname" $) "jms-core" ($.Values.core.service.web.port | toString) }}
|
||||
{{ $corews := printf "http://%s-%s:%s" (include "jumpserver.fullname" $) "jms-core" ($.Values.core.service.ws.port | toString) }}
|
||||
{{ $core := printf "http://%s-%s:%s" (include "jumpserver.fullname" $) "jms-core" ($.Values.core.service.web.port | toString) }}
|
||||
{{ $omnidb := printf "http://%s-%s:%s" (include "jumpserver.fullname" $) "jms-omnidb" ($.Values.omnidb.service.web.port | toString) }}
|
||||
server {
|
||||
listen {{ $.Values.web.service.web.port }};
|
||||
@ -25,9 +24,6 @@ server {
|
||||
add_header Content-Encoding gzip;
|
||||
root /opt/jumpserver/data/;
|
||||
}
|
||||
location /media/ {
|
||||
root /opt/jumpserver/data/;
|
||||
}
|
||||
location /static/ {
|
||||
root /opt/jumpserver/data/;
|
||||
}
|
||||
@ -76,7 +72,7 @@ server {
|
||||
}
|
||||
{{- end }}
|
||||
location /ws/ {
|
||||
proxy_pass {{ $corews }};
|
||||
proxy_pass {{ $core }};
|
||||
proxy_buffering off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
@ -85,15 +81,8 @@ server {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
location /api/ {
|
||||
proxy_pass {{ $coreweb }};
|
||||
proxy_buffering off;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
location /core/ {
|
||||
proxy_pass {{ $coreweb }};
|
||||
location ~ ^/(core|api|media)/ {
|
||||
proxy_pass {{ $core }};
|
||||
proxy_buffering off;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
|
@ -57,8 +57,6 @@ spec:
|
||||
value: {{ .config.log.level | quote }}
|
||||
- name: HTTP_LISTEN_PORT
|
||||
value: {{ .service.web.port | quote }}
|
||||
- name: WS_LISTEN_PORT
|
||||
value: {{ .service.ws.port | quote }}
|
||||
- name: DB_ENGINE
|
||||
value: {{ include "jumpserver.database.engine" $ | quote }}
|
||||
- name: DB_HOST
|
||||
|
@ -58,8 +58,6 @@ spec:
|
||||
value: {{ .config.log.level | quote }}
|
||||
- name: HTTP_LISTEN_PORT
|
||||
value: {{ .service.web.port | quote }}
|
||||
- name: WS_LISTEN_PORT
|
||||
value: {{ .service.ws.port | quote }}
|
||||
- name: DB_ENGINE
|
||||
value: {{ include "jumpserver.database.engine" $ | quote }}
|
||||
- name: DB_HOST
|
||||
@ -96,9 +94,6 @@ spec:
|
||||
- name: web
|
||||
containerPort: {{ .service.web.port }}
|
||||
protocol: TCP
|
||||
- name: ws
|
||||
containerPort: {{ .service.ws.port }}
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
{{- toYaml .livenessProbe | nindent 12 }}
|
||||
readinessProbe:
|
||||
|
@ -17,10 +17,6 @@ spec:
|
||||
targetPort: web
|
||||
protocol: TCP
|
||||
name: web
|
||||
- port: {{ .service.ws.port }}
|
||||
targetPort: ws
|
||||
protocol: TCP
|
||||
name: ws
|
||||
sessionAffinity: ClientIP
|
||||
sessionAffinityConfig:
|
||||
clientIP:
|
||||
|
@ -123,8 +123,6 @@ core:
|
||||
type: ClusterIP
|
||||
web:
|
||||
port: 8080
|
||||
ws:
|
||||
port: 8070
|
||||
|
||||
resources: {}
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
|
Loading…
Reference in New Issue
Block a user