https://github.com/aman7123/kong-spa-plugin
A @Kong Enterprise plugin for hosting a web page from the internal portal
https://github.com/aman7123/kong-spa-plugin
Last synced: 3 months ago
JSON representation
A @Kong Enterprise plugin for hosting a web page from the internal portal
- Host: GitHub
- URL: https://github.com/aman7123/kong-spa-plugin
- Owner: Aman7123
- Created: 2022-09-01T00:10:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-01T01:37:30.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T02:29:03.002Z (5 months ago)
- Language: Lua
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom SPA (Single Page App) Plugin
* Name: custom-spa-plugin
* Version: 1.0.0
* Kong Version: 2.8.xThe most up-to-date code can be found in the `develop` branch.
## Description
Currently this plugin is able to use Kong as a webserver.### Parameters
Here's a list of all the parameters which can be used in this plugin's configuration:| Form Parameter | default | description |
|----------------|---------|-------------|
| `name`|| The name of the plugin to use, in this case: `custom-spa-plugin`.|
| `enabled` | `true` | Whether this plugin will be applied.|
| `config.body` || Raw text for response.|
| `config.content_type` || Configures the body `Content-Type`.|
| `config.file` || Path to file in Portal for workspace where plugin is installed.|
| `config.source` || COnfigures the plugin which source to read from, the body configured in this plugin or the file.|## Installation
Please install this plugin as directed by the Kong Custom Plugin [Installation Guide](https://docs.konghq.com/enterprise/2.4.x/plugin-development/distribution/)All requirements for this parent plugin apply including PostgreSQL as the primary Kong database.
## Testing
This develop branch edition does not have up-to-date tests!## Additional modules
* This plugin includes tests for use with [`kong-pongo`](https://github.com/Kong/kong-pongo)## Contact
* Aaron Renner: [email protected]