[英]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.