https://github.com/avidal/caddy-fastlike
Work-in-progress Caddy Server plugin to run fastlike-compatible wasm programs
https://github.com/avidal/caddy-fastlike
caddy caddy-plugin golang wasm
Last synced: 5 months ago
JSON representation
Work-in-progress Caddy Server plugin to run fastlike-compatible wasm programs
- Host: GitHub
- URL: https://github.com/avidal/caddy-fastlike
- Owner: avidal
- License: mpl-2.0
- Created: 2020-10-02T18:29:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T20:42:27.000Z (over 5 years ago)
- Last Synced: 2024-06-20T07:57:51.190Z (about 2 years ago)
- Topics: caddy, caddy-plugin, golang, wasm
- Language: Go
- Homepage: https://fastlike.dev/caddy-fastlike
- Size: 51.8 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# caddy-fastlike
A [Caddy v2](https://caddyserver.com) plugin that can run WebAssembly code via [fastlike](https://fastlike.dev)
## 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.