nginx-ingress v1.15.1 blocks configuration-snippet by default as a security risk, silently dropping the entire Ingress resource. WebSocket upgrade headers are handled natively with proxy-http-version 1.1.
25 lines
712 B
YAML
25 lines
712 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: gotify
|
|
namespace: notifications
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
# WebSocket support for Gotify client connections (/stream endpoint)
|
|
# nginx-ingress handles Upgrade/Connection headers natively with http/1.1
|
|
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: gotify.riotpiao.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: gotify
|
|
port:
|
|
number: 80
|