Skip to content

Start your containers on demand, shut them down automatically when there's no activity with ProxyWasm!

License

Notifications You must be signed in to change notification settings

sablierapp/sablier-proxywasm-plugin

Repository files navigation

Proxy Wasm Sablier Plugin

Go Report Card Discord

Start your containers on demand, shut them down automatically when there's no activity using ProxyWasm.

You can use this plugin with any reverse proxy that implements the ProxyWasm specification.

Installation

You can install Sablier using one of the following methods:

Use the binary distribution

Grab the latest binary from the releases page and use it:

wget https://github.com/sablierapp/sablier-proxywasm-plugin/releases/download/v1.1.0/sablier-proxywasm-plugin.wasm

gh attestation verify --owner sablierapp sablier-proxywasm-plugin.wasm

Compile your binary from the sources

git clone git@github.com:sablierapp/sablier-proxywasm-plugin.git
cd sablier-proxywasm-plugin
make

./sablier-proxywasm-plugin.wasm

Usage

The usage depends on the reverse proxy integration with Proxy Wasm.

See examples for more details on how to set it up with providers.

Configuration

You can load a JSON configuration such as:

{ 
    "sablier_url": "sablier:10000", 
    "group": "my-group", 
    "session_duration": "1m", 
    "dynamic": { 
        "display_name": "My Group", 
        "theme": "hacker-terminal" 
    }
}

Examples

Apache APISIX

See the Apache APISIX example on how to use the plugin.

Envoy

See the envoy example on how to use the plugin.

Istio

See the istio example on how to use the plugin.

Nginx

See the nginx example on how to use the plugin.

Other Reverse Proxy Plugins

Caddy

Caddy

Sablier provides a native Caddy module for seamless integration with Caddy v2.

Quick Start:

  1. Build Caddy with the Sablier module using xcaddy
  2. Add Sablier directives to your Caddyfile
  3. Configure dynamic scaling rules

📚 Full Documentation | 💻 Plugin Repository


Traefik

Traefik

Sablier provides a powerful middleware plugin for Traefik, the cloud-native application proxy.

Quick Start:

  1. Add the Sablier plugin to your Traefik static configuration
  2. Create Sablier middleware in your dynamic configuration
  3. Apply the middleware to your routes

📚 Full Documentation | 💻 Plugin Repository

Community

Join our Discord server to discuss and get support!

Discord

Support

See SUPPORT.md

About

Start your containers on demand, shut them down automatically when there's no activity with ProxyWasm!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •