Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Change default validator and rest_api addresses #24

Merged
merged 2 commits into from
Mar 27, 2019
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
8 changes: 4 additions & 4 deletions daemon/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ pub struct GridConfigBuilder {
impl Default for GridConfigBuilder {
fn default() -> Self {
Self {
validator_endpoint: Some("localhost:4004".to_owned()),
validator_endpoint: Some("127.0.0.1:4004".to_owned()),
log_level: Some(Level::Warn),
rest_api_endpoint: Some("localhost:8080".to_owned()),
rest_api_endpoint: Some("127.0.0.1:8080".to_owned()),
}
}
}
Expand Down Expand Up @@ -131,7 +131,7 @@ mod test {
.build()
.expect("Unable to build configuration");

assert_eq!("localhost:4004", config.validator_endpoint());
assert_eq!("localhost:8080", config.rest_api_endpoint());
assert_eq!("127.0.0.1:4004", config.validator_endpoint());
assert_eq!("127.0.0.1:8080", config.rest_api_endpoint());
}
}
6 changes: 5 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,8 @@ services:
build:
context: .
dockerfile: daemon/Dockerfile
entrypoint: "/gridd -v"
expose:
- 8080
ports:
- '8080:8080'
entrypoint: "/gridd -v -b gridd:8080