Iced-Sun opened a new issue #661:
URL: https://github.com/apache/apisix-ingress-controller/issues/661


   ### Issue description
   
   I need use the `$proxy_protocol_server_port` variable in the match rules of 
ApisixRoute to do the http-to-https redirection. 
   
   We decided to terminate TLS at the load balancer, hence the annotation of 
`k8s.apisix.apache.org/http-to-https` won't work because it depends on 
`$scheme` which is always `http`. The proxy protocol could help with the 
`$proxy_protocol_server_port` variable but it demands the ablitity to be 
referred.
   
   As a workaround, I created a redirection ApisixRoute and then added the 
'vars' match rules manually, for now.
   
   Is there any plan to enable ApisixRoute to refer to arbitary nginx 
variables? Or better, to support even in native Ingress (e.g. as annotations)?
   
   Regards.
   
   ### Environment
   
   * your apisix-ingress-controller version (output of 
`apisix-ingress-controller version --long`):  1.2.0
   * your Kubernetes cluster version (output of `kubectl version`): 
1.21.2-eks-0389ca3
   * if you run apisix-ingress-controller in Bare-metal environment, also show 
your OS version (`uname -a`):  N/A


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to