Update ingress for up.junv.cc

This commit is contained in:
2026-01-12 10:26:13 +11:00
parent 1676b67b6e
commit 00ae085718
+3 -35
View File
@@ -45,39 +45,7 @@ ports:
- name: http # Should match Service port name
port: 3031 # e.g., 3031
protocol: TCP
---
# Ingress for public /status/* path (no authentication)
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: up-ingress-status
namespace: home-apps
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
ingressClassName: nginx
tls:
- hosts:
- up.junv.cc
secretName: up-tls
rules:
- host: up.junv.cc
http:
paths:
- path: /assets
pathType: Prefix
backend:
service:
name: up
port:
number: 80
- path: /status
pathType: Prefix
backend:
service:
name: up
port:
number: 80
---
# Ingress for all other paths (requires authentication)
apiVersion: networking.k8s.io/v1
@@ -87,8 +55,8 @@ metadata:
namespace: home-apps
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/auth-url: "https://pass.junv.cc/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://pass.junv.cc/oauth2/start?rd=https://$host$escaped_request_uri"
# nginx.ingress.kubernetes.io/auth-url: "https://pass.junv.cc/oauth2/auth"
# nginx.ingress.kubernetes.io/auth-signin: "https://pass.junv.cc/oauth2/start?rd=https://$host$escaped_request_uri"
# Optional: Proxy settings for specific backends
# nginx.ingress.kubernetes.io/proxy-body-size: "100m"
# nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"