client host
This commit is contained in:
1 parent
d63731fced
commit
8d48b2cc8a
4 files changed
+13
-5
No files matched your search
@@ -22,3 +22,11 @@ spec:
|
|||||||
value: "{{ .Values.server.protocol }}://{{ .Values.server.ingress.host }}/api/v1"
|
value: "{{ .Values.server.protocol }}://{{ .Values.server.ingress.host }}/api/v1"
|
||||||
- name: UPTIME_APP_CLIENT_HOST
|
- name: UPTIME_APP_CLIENT_HOST
|
||||||
value: "http://{{ .Values.client.ingress.host }}"
|
value: "http://{{ .Values.client.ingress.host }}"
|
||||||
|
volumeMounts:
|
||||||
|
- name: config-volume
|
||||||
|
mountPath: /etc/nginx/conf.d/default.conf
|
||||||
|
subPath: default.conf
|
||||||
|
volumes:
|
||||||
|
- name: config-volume
|
||||||
|
configMap:
|
||||||
|
name: checkmate-server-nginx-cm
|
||||||
@@ -19,7 +19,7 @@ spec:
|
|||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: client
|
name: checkmate-client
|
||||||
port:
|
port:
|
||||||
number: {{ .Values.client.port }}
|
number: {{ .Values.client.port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -26,7 +26,7 @@ spec:
|
|||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: server
|
name: checkmate-server
|
||||||
port:
|
port:
|
||||||
number: {{ .Values.server.port }}
|
number: {{ .Values.server.port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: checkmate-server-nginx-cm
|
name: checkmate-server-nginx-cm
|
||||||
@@ -22,7 +22,7 @@ data:
|
|||||||
}
|
}
|
||||||
|
|
||||||
# location /api/ {
|
# location /api/ {
|
||||||
# proxy_pass http://server:5000/api/;
|
# proxy_pass http://{{ .Values.server.ingress.host }}:5000/api/;
|
||||||
# proxy_http_version 1.1;
|
# proxy_http_version 1.1;
|
||||||
# proxy_set_header Host $host;
|
# proxy_set_header Host $host;
|
||||||
# proxy_set_header X-Real-IP $remote_addr;
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
@@ -31,7 +31,7 @@ data:
|
|||||||
# }
|
# }
|
||||||
|
|
||||||
location /api-docs/ {
|
location /api-docs/ {
|
||||||
proxy_pass http://server:5000/api-docs/;
|
proxy_pass http://{{ .Values.server.ingress.host }}:5000/api-docs/;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
Reference in new issue
Block a user