FEAT(umami): allow public share URLs
- Split ingress into public (umami-share) and protected (umami-ingress) - Public paths: /share, /api/share, /_next, /script.js - Protected paths: everything else (requires Authelia SSO)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Public Ingress - Share URLs (no auth required)
|
# Public Ingress - Share URLs and required resources (no auth required)
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
@@ -16,6 +16,7 @@ spec:
|
|||||||
- host: umami0213.kro.kr
|
- host: umami0213.kro.kr
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
|
# Share page
|
||||||
- path: /share
|
- path: /share
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
@@ -23,6 +24,30 @@ spec:
|
|||||||
name: umami
|
name: umami
|
||||||
port:
|
port:
|
||||||
number: 3000
|
number: 3000
|
||||||
|
# Share API
|
||||||
|
- path: /api/share
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: umami
|
||||||
|
port:
|
||||||
|
number: 3000
|
||||||
|
# Next.js static files
|
||||||
|
- path: /_next
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: umami
|
||||||
|
port:
|
||||||
|
number: 3000
|
||||||
|
# Tracking script (also public)
|
||||||
|
- path: /script.js
|
||||||
|
pathType: Exact
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: umami
|
||||||
|
port:
|
||||||
|
number: 3000
|
||||||
---
|
---
|
||||||
# Protected Ingress - Dashboard (Authelia SSO required)
|
# Protected Ingress - Dashboard (Authelia SSO required)
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
|
|||||||
Reference in New Issue
Block a user