2026-06-30 16:58:52 -07:00
|
|
|
{{- $api := include "checkmate.api" . | fromYaml -}}
|
2025-10-01 09:33:32 +07:00
|
|
|
apiVersion: v1
|
2026-06-30 16:58:52 -07:00
|
|
|
kind: ConfigMap
|
2025-10-01 09:16:45 +07:00
|
|
|
metadata:
|
2026-06-29 10:15:29 -07:00
|
|
|
name: checkmate-client-nginx-cm
|
2025-10-01 09:16:45 +07:00
|
|
|
data:
|
|
|
|
|
default.conf: |
|
|
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
listen [::]:80;
|
|
|
|
|
|
|
|
|
|
server_name checkmate-demo.bluewavelabs.ca;
|
|
|
|
|
server_tokens off;
|
|
|
|
|
|
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
|
|
|
root /var/www/certbot;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
index index.html index.htm;
|
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# location /api/ {
|
2026-06-30 16:58:52 -07:00
|
|
|
# proxy_pass http://{{ $api.ingress.host }}:5000/api/;
|
2025-10-01 09:16:45 +07:00
|
|
|
# proxy_http_version 1.1;
|
|
|
|
|
# proxy_set_header Host $host;
|
|
|
|
|
# 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;
|
|
|
|
|
# }
|
|
|
|
|
|
|
|
|
|
location /api-docs/ {
|
2026-06-30 16:58:52 -07:00
|
|
|
proxy_pass http://{{ $api.ingress.host }}:5000/api-docs/;
|
2025-10-01 09:16:45 +07:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|