From fc080b4a8267a6ee5985ddccae00946e03fd2961 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Mon, 16 Dec 2019 13:16:57 +0800 Subject: [PATCH 1/2] fix address binding for rocket --- Rocket.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rocket.toml b/Rocket.toml index 834fe0bd..2bcec8c8 100644 --- a/Rocket.toml +++ b/Rocket.toml @@ -1,5 +1,5 @@ [development] -address = "127.0.0.1" +address = "0.0.0.0" port = 8001 workers = 12 keep_alive = 5 @@ -8,7 +8,7 @@ hi = "Hello!" # this is an unused extra; maybe application specific? is_extra = true # this is an unused extra; maybe application specific? [staging] -address = "127.0.0.1" +address = "0.0.0.0" port = 8001 workers = 8 keep_alive = 5 @@ -17,7 +17,7 @@ log = "normal" secret_key = "8Xui8SN4mI+7egV/9dlfYYLGQJeEx4+DwmSQLwDVXJg=" [production] -address = "127.0.0.1" +address = "0.0.0.0" port = 8001 workers = 12 keep_alive = 5 From ede10c971bdbc883b5b8aee8815f1b7989f80655 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Mon, 16 Dec 2019 13:20:20 +0800 Subject: [PATCH 2/2] update readme for rocket config --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4e3ed536..a01a3655 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,12 @@ Run `./gg18_sign_client`. The application should be in the same folder as the `k Run `./run.sh` (located in `/demo` folder) in the same folder as the excutables (usually `/target/release/examples`. Move `params` file to the same folder). It will spawn a shared state machine, clients in the number of parties and signing requests for the `threshold + 1` first parties. +`sm_manager` rocket server runs in _production_ mode by default. You may modify the `./run.sh` to config it to run in different environments. For example, to run rocket server in _development_: + +``` +ROCKET_ENV=development ./target/release/examples/sm_manager +``` + | !["Multiparty ECDSA Demo"][demo] | | :------------------------------------------------: | | _A 5 parties setup with 3 signers (threshold = 2)_ |