MichaelLLC commented on issue #2320:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/2320#issuecomment-2527848680

   When using Ingress, you have two options:
   1. Use annotations:
   ```yaml
   annotations:
     k8s.apisix.apache.org/http-to-https: "true"
   ```
   2. Create an ApisixPluginConfig CRD and reference it via an annotation:
   ```
   annotations:
     k8s.apisix.apache.org/plugin-config-name: "echo-and-cors-apc"
   ```
   However, when using the ApisixRoute CRD, to enable HTTP to HTTPS 
redirection, you need to specify it in the spec as follows:
   ``
   plugins:
     - config:
         http_to_https: true
       enable: true
       name: redirect
   ```
   


-- 
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