mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
Update ingress for up.junv.cc
This commit is contained in:
+3
-35
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user