Kong Route - 强制使用 HTTPS
Nginx 中强制 HTTPS 访问常用配置
1 | server { |
Kong Route 的相关设置方法
- Protocols 仅支持
https
,不再支持http
- Https redirect status code 设置为 301
Https redirect status code
The status code Kong responds with when all properties of a Route match except the protocol, i.e. if the protocol of the request is HTTP instead of HTTPS. Location header is injected by Kong if the field is set to 301, 302, 307 or 308. Defaults to 426.