client host

This commit is contained in:
ariretiarno committed 2025-10-01 09:33:32 +07:00
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"
- name: UPTIME_APP_CLIENT_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
backend:
service:
name: client
name: checkmate-client
port:
number: {{ .Values.client.port }}
{{- end }}
@@ -26,7 +26,7 @@ spec:
pathType: Prefix
backend:
service:
name: server
name: checkmate-server
port:
number: {{ .Values.server.port }}
{{- end }}
@@ -1,4 +1,4 @@
apiVersion: apps/v1
apiVersion: v1
kind: ConfigMap
metadata:
name: checkmate-server-nginx-cm
@@ -22,7 +22,7 @@ data:
}
# location /api/ {
# proxy_pass http://server:5000/api/;
# proxy_pass http://{{ .Values.server.ingress.host }}:5000/api/;
# proxy_http_version 1.1;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
@@ -31,7 +31,7 @@ data:
# }
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_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;