HappyValleyIO / kong-http-to-https-redirect

301 redirect from http to https

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kong-http-to-https-redirect

301 redirect from http to https

Installation

To use, allow kong to access route on both https and http. Only allowing http results in kong responding before ever hitting the access method in the lifecycle of the request.

Then run:

luarocks install *.rockspec

Then in the kong.yml add

custom_plugins:
  - http-to-https-redirect

Run kong reload or start and add the plugin as normal.

Docker installation

We recommend using kong-docker by dojot. Copy this repo into the plugins directory of that project and build a custom docker image.

Configuration

As yet, we've had no need for any configuration. Raise an issue if there's anything you'd like to see.

Misc

Thanks to the creator of https://github.com/jicong/kong-aliyun-http-filter off of which this plugin was created.

About

301 redirect from http to https

License:MIT License


Languages

Language:Lua 100.0%