You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/05/25 14:42:01 UTC

[GitHub] [apisix-ingress-controller] tao12345666333 commented on a change in pull request #484: feat: add support for http-to-https redirect annotation

tao12345666333 commented on a change in pull request #484:
URL: https://github.com/apache/apisix-ingress-controller/pull/484#discussion_r638854715



##########
File path: docs/en/latest/concepts/annotations.md
##########
@@ -59,3 +59,12 @@ Blocklist Source Range
 
 You can specify the denied client IP addresses or nets by the annotation `k8s.apisix.apache.org/blocklist-source-range`, multiple IP addresses or nets join together with `,`,
 for instance, `k8s.apisix.apache.org/blocklist-source-range: 127.0.0.1,172.17.0.0/16`. Default value is *empty*, which means the sources are not limited.
+
+Redirect
+---------
+
+You can use the following annotations to control the redirect behavior.
+
+* `k8s.apisix.apache.org/http-to-https`
+
+If this annotation set to `true` and the request is HTTP, it will be automatically redirected to HTTPS with 301 response code, and the URI will keep the same as client request.

Review comment:
       updated.




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org