Skip to content

Commit 8fbecde

Browse files
committed
Move root redirect to frontend nginx
1 parent 1b930dc commit 8fbecde

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: login
33
description: HOTOSM Login Service - Hanko SSO + OSM OAuth
4-
version: "0.1.5"
4+
version: "0.1.6"
55
appVersion: "1.0.0"
66
maintainers:
77
- email: sysadmin@hotosm.org

chart/templates/frontend-nginx-configmap.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ data:
1717
gzip on;
1818
gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript;
1919
20+
# Redirect root to /app
21+
location = / {
22+
return 302 /app;
23+
}
24+
2025
# SPA routing - serve index.html for all non-file requests
2126
location / {
2227
try_files $uri $uri/ /index.html;

chart/templates/ingress.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ metadata:
152152
annotations:
153153
nginx.ingress.kubernetes.io/ssl-redirect: "true"
154154
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
155-
nginx.ingress.kubernetes.io/configuration-snippet: |
156-
return 302 https://{{ .Values.ingress.host }}/app;
157155
nginx.ingress.kubernetes.io/priority: "100"
158156
cert-manager.io/cluster-issuer: "letsencrypt-prod"
159157
external-dns.alpha.kubernetes.io/hostname: {{ .Values.ingress.host }}

0 commit comments

Comments
 (0)