diff options
Diffstat (limited to 'unit-wasm-conf.json')
-rw-r--r-- | unit-wasm-conf.json | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/unit-wasm-conf.json b/unit-wasm-conf.json index ac17693..719cd67 100644 --- a/unit-wasm-conf.json +++ b/unit-wasm-conf.json @@ -7,7 +7,7 @@ "settings": { "http": { - "max_body_size": 1073741824 + "max_body_size": 8589934592 } }, @@ -30,6 +30,14 @@ }, { "match": { + "uri": "/large-upload*" + }, + "action": { + "pass": "applications/large-upload" + } + }, + { + "match": { "uri": "/rust-echo*" }, "action": { @@ -46,6 +54,14 @@ }, { "match": { + "uri": "/rust-large-upload*" + }, + "action": { + "pass": "applications/rust-large-upload" + } + }, + { + "match": { "uri": "/rust-hello-world*" }, "action": { @@ -73,6 +89,21 @@ "request_end_handler": "luw_request_end_handler", "response_end_handler": "luw_response_end_handler" }, + "large-upload": { + "type": "wasm", + "module": "/path/to/unit-wasm/examples/c/large-upload.wasm", + "request_handler": "luw_request_handler", + "malloc_handler": "luw_malloc_handler", + "free_handler": "luw_free_handler", + "module_init_handler": "luw_module_init_handler", + "module_end_handler": "luw_module_end_handler", + "response_end_handler": "luw_response_end_handler", + "access": { + "filesystem": [ + "/var/tmp" + ] + } + }, "rust-echo-request": { "type": "wasm", "module": "/path/to/unit-wasm/examples/rust/echo-request/target/wasm32-wasi/debug/rust_echo_request.wasm", @@ -91,6 +122,21 @@ "request_end_handler": "uwr_request_end_handler", "response_end_handler": "uwr_response_end_handler" }, + "rust-large-upload": { + "type": "wasm", + "module": "/path/to/src/unit-wasm/examples/rust/large-upload/target/wasm32-wasi/debug/rust_large_upload.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", + "response_end_handler": "uwr_response_end_handler", + "access": { + "filesystem": [ + "/var/tmp" + ] + } + }, "rust-hello-world": { "type": "wasm", "module": "/path/to/unit-wasm/examples/rust/hello-world/target/wasm32-wasi/debug/rust_hello_world.wasm", |