diff options
Diffstat (limited to '')
-rw-r--r-- | examples/rust/echo-request-wbody/unit-wasm-conf.json | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/rust/echo-request-wbody/unit-wasm-conf.json b/examples/rust/echo-request-wbody/unit-wasm-conf.json new file mode 100644 index 0000000..cb799ee --- /dev/null +++ b/examples/rust/echo-request-wbody/unit-wasm-conf.json @@ -0,0 +1,36 @@ +{ + "listeners": { + "[::1]:8888": { + "pass": "routes" + } + }, + + "settings": { + "http": { + "max_body_size": 1073741824 + } + }, + + "routes": [ + { + "match": { + "uri": "/echo*" + }, + "action": { + "pass": "applications/rust-echo-request" + } + } + ], + + "applications": { + "rust-echo-request": { + "type": "wasm", + "module": "/home/timo/unit1.31/unit-wasm/examples/rust/echo-request-wbody/target/wasm32-wasi/debug/rust_echo_request.wasm", + "request_handler": "uwr_request_handler", + "malloc_handler": "luw_malloc_handler", + "free_handler": "luw_free_handler", + "module_init_handler": "uwr_module_init_handler", + "module_end_handler": "uwr_module_end_handler" + } + } +} |