Skip to content
A Kong plugin to rewrite the upstream request path
Lua Shell Dockerfile Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
kong/plugins/path-prefix
spec
.gitignore
Dockerfile Initial commit Sep 24, 2018
Makefile
README.md
create.sh
docker-compose.yml
entrypoint.sh
kong-plugin-path-prefix-0.1.0-1.rockspec

README.md

kong-plugin-path-prefix

A Kong plugin that rewrites the upstream request path. This can be useful if you have routes associated to a single service that all share the same path prefix.

For example, given /foobar, /foobar/version, and /foobar/healthz routes, the resulting upstream request routes will be /, /version, and /healthz, respectively, (assuming that /foobar is set as config.path_prefix).

This plugin is not compatible with APIs or any version older than Kong 0.14.

usage

Can be installed on either a service or individual routes.

schema

field explanation default
path_prefix The prefix shared by all routes associated with the service. N/A
escape Whether any hyphens in the path prefix should be escaped true

development

Run docker-compose up --build to stand up an instance of Kong and Postgres. The create.sh script will scaffold a service that uses the plugin, along with several routes.

You can’t perform that action at this time.