0条评论
还没有人评论过~
在 Kubernetes 集群上部署了 Nginx Ingress Controller ,请问如何如何给 Nginx 添加下面的配置?
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
可以通过 ingress 的 nginx.org/location-snippets
注解添加
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: cnblogs-ingress
annotations:
nginx.org/location-snippets: |
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;