mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-24 14:31:51 +01:00
Documentation is now published on the `gh-pages` branch. The branch will have a folder `docs` containing the following structure: - `./docs` the copy from the `main` docs, but only used for the `index.html` page to do the multi-version routing. - `./docs/main` the copy from the `main` branch docs folder - `./docs/beta` the copy from the `beta` branch docs folder Closes #332
33 lines
956 B
Markdown
33 lines
956 B
Markdown
# Apache APISIX Plugin
|
|
|
|
The Apache APISIX Plugin is a WASM Plugin written with the Proxy Wasm SDK.
|
|
|
|
## Provider compatibility grid
|
|
|
|
| Provider | Dynamic | Blocking |
|
|
|----------------------------------------|:-------:|:--------:|
|
|
| [Docker](../providers/docker) | ✅ | ✅ |
|
|
| [Docker Swarm](../providers/docker_swarm) | ❓ | ❓ |
|
|
| [Kubernetes](../providers/kubernetes) | ❓ | ❓ |
|
|
|
|
## Install the plugin to Apache APISIX
|
|
|
|
```yaml
|
|
wasm:
|
|
plugins:
|
|
- name: proxywasm_sablier_plugin
|
|
priority: 7997
|
|
file: /wasm/sablierproxywasm.wasm # Downloaded WASM Filter path
|
|
```
|
|
|
|
## Configuration
|
|
|
|
You can have the following configuration:
|
|
|
|
```yaml
|
|
routes:
|
|
- uri: "/"
|
|
plugins:
|
|
proxywasm_sablier_plugin:
|
|
conf: '{ "sablier_url": "sablier:10000", "group": ["my-group"], "session_duration": "1m", "dynamic": { "display_name": "Dynamic Whoami" } }'
|
|
``` |