diff options
Diffstat (limited to 'unit-wasm-conf.json')
-rw-r--r-- | unit-wasm-conf.json | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/unit-wasm-conf.json b/unit-wasm-conf.json index 0f5c3d3..ac17693 100644 --- a/unit-wasm-conf.json +++ b/unit-wasm-conf.json @@ -43,6 +43,14 @@ "action": { "pass": "applications/rust-upload-reflector" } + }, + { + "match": { + "uri": "/rust-hello-world*" + }, + "action": { + "pass": "applications/rust-hello-world" + } } ], @@ -82,6 +90,13 @@ "free_handler": "luw_free_handler", "request_end_handler": "uwr_request_end_handler", "response_end_handler": "uwr_response_end_handler" + }, + "rust-hello-world": { + "type": "wasm", + "module": "/path/to/unit-wasm/examples/rust/hello-world/target/wasm32-wasi/debug/rust_hello_world.wasm", + "request_handler": "uwr_request_handler", + "malloc_handler": "luw_malloc_handler", + "free_handler": "luw_free_handler" } } } |