Skip to content

Commit b68db7a

Browse files
0xmountaintopomershlo
authored andcommitted
fix address binding for "examples/sm_manager" (#87)
* fix address binding for rocket * update readme for rocket config
1 parent 433cb22 commit b68db7a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ Run `./gg18_sign_client`. The application should be in the same folder as the `k
4545

4646
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.
4747

48+
`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_:
49+
50+
```
51+
ROCKET_ENV=development ./target/release/examples/sm_manager
52+
```
53+
4854
| !["Multiparty ECDSA Demo"][demo] |
4955
| :------------------------------------------------: |
5056
| _A 5 parties setup with 3 signers (threshold = 2)_ |

Rocket.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[development]
2-
address = "127.0.0.1"
2+
address = "0.0.0.0"
33
port = 8001
44
workers = 12
55
keep_alive = 5
@@ -8,7 +8,7 @@ hi = "Hello!" # this is an unused extra; maybe application specific?
88
is_extra = true # this is an unused extra; maybe application specific?
99

1010
[staging]
11-
address = "127.0.0.1"
11+
address = "0.0.0.0"
1212
port = 8001
1313
workers = 8
1414
keep_alive = 5
@@ -17,7 +17,7 @@ log = "normal"
1717
secret_key = "8Xui8SN4mI+7egV/9dlfYYLGQJeEx4+DwmSQLwDVXJg="
1818

1919
[production]
20-
address = "127.0.0.1"
20+
address = "0.0.0.0"
2121
port = 8001
2222
workers = 12
2323
keep_alive = 5

0 commit comments

Comments
 (0)