Ingress-nginx随记:修订间差异
来自三线的随记
(创建页面,内容为“Ingress nginx annotation doc https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/ === Lua 相关 === nginx 原生是不支持Lua的, Ingress nginx能用lua是因为引用了 [https://github.com/openresty/lua-nginx-module openresty/lua-nginx-module] 需要特别注意的是 ''<code>rewrite_by_lua_block</code>'' always runs ''after'' the standard ngx_http_rewrite_module. -- TO DO -- 分类:Ingress 分类:K8s”) |
小无编辑摘要 |
||
第2行: | 第2行: | ||
https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/ | https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/ | ||
=== use-forwarded-headers === | |||
https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#use-forwarded-headers | |||
If false, NGINX ignores incoming <code>X-Forwarded-*</code> headers, filling them with the request information it sees. Use this option if NGINX is exposed directly to the internet, or it's behind a L3/packet-based load balancer that doesn't alter the source IP in the packets. | |||
=== Lua 相关 === | === Lua 相关 === |
2024年7月4日 (四) 12:48的版本
Ingress nginx annotation doc
https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/
use-forwarded-headers
If false, NGINX ignores incoming X-Forwarded-*
headers, filling them with the request information it sees. Use this option if NGINX is exposed directly to the internet, or it's behind a L3/packet-based load balancer that doesn't alter the source IP in the packets.
Lua 相关
nginx 原生是不支持Lua的, Ingress nginx能用lua是因为引用了 openresty/lua-nginx-module
需要特别注意的是 rewrite_by_lua_block
always runs after the standard ngx_http_rewrite_module.
-- TO DO --