Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 644 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 644 Bytes

caddy-fastlike

A Caddy v2 plugin that can run WebAssembly code via fastlike

try it out

Extremely beta. But you can try it out:

# Build the example wasm
$ cd testdata && cargo build

# Get xcaddy and use it to build this plugin
$ go get -u github.com/caddyserver/xcaddy/cmd/xcaddy
$ env CGO_ENABLED=1 xcaddy build --with fastlike.dev/caddy-fastlike=$(pwd)

# Run caddy with the example config
$ ./caddy run --config example-config.json

Now all requests to localhost:2105 will run through the wasm module via fastlike. Try http://localhost:2105/teapot for a static response.