Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Run

Just run `codechain-agent-hub` in your shell.
To safely communicate with the Dashboard, please set the `PASSPHRASE` environment variable. The Dashboard program should use the same passphrase.
Also, you should set `NETWORK_ID` environment variable to print the network id in log messages.

When you are using the `PASSPHRASE` you should use SSL over the connection. If you don't use the SSL, the `PASSPHRASE` is open to the internet.

Expand Down
2 changes: 1 addition & 1 deletion server/src/daily_reporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn start(
db_service: DBServiceSender,
agent_service: AgentServiceSender,
) -> thread::JoinHandle<()> {
let network_id = std::env::var("NETWORK_ID").unwrap();
let network_id = std::env::var("NETWORK_ID").expect("NETWORK_ID environment variable is needed");

thread::Builder::new()
.name("daily reporter".to_string())
Expand Down