Skip to content

Commit

Permalink
feat(config): add CARTESI_HTTP_ADDRESS env var
Browse files Browse the repository at this point in the history
  • Loading branch information
torives committed Jan 17, 2024
1 parent 8be7951 commit 4887849
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ In reader mode, the node does not make claims.
* **Type:** `bool`
* **Default:** `"false"`

### `CARTESI_HTTP_ADDRESS`
HTTP address for the node.

* **Type:** `string`
* **Default:** `"127.0.0.1"`

### `CARTESI_HTTP_PORT`
HTTP port for the node.
The node will also use the 20 ports after this one for internal services.
Expand Down
6 changes: 6 additions & 0 deletions internal/config/generate/Config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ for more information."""
# HTTP
#

[http.CARTESI_HTTP_ADDRESS]
default = "127.0.0.1"
go-type = "string"
description = """
HTTP address for the node."""

[http.CARTESI_HTTP_PORT]
default = "10000"
go-type = "int"
Expand Down
5 changes: 5 additions & 0 deletions internal/config/get.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4887849

Please sign in to comment.