[英]How to setup nginx ingress controller , such that the kubernetes pod remains http but the nginx serves request on https
[英]Pass request header and request body in kubernetes nginx ingress controller
我在入口 yaml 文件中通过了授权 header
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header Authorization "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1Ni......"
但得到错误
2021/03/01 09:23:58 [emerg] 947#947: 参数太长,可能在 /tmp/nginx-cfg445808174:586 中缺少终止“”字符
我也想将请求有效负载传递给 auth-url 传递授权 header 和请求正文的正确方法是什么?
您可以通过授权 header
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header Authorization $http_authorization;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.