Skip to content

Commit

Permalink
Add minimal configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
strahe committed Sep 4, 2024
1 parent 6d12997 commit 13c767b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ To build the dashboard, follow these steps:

2. **Edit the Configuration**
Customize the `config.toml` file to suit your environment.
Or you can use a [minimal configuration file](minimal.config.toml).

3. **Start the Backend**
```bash
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type Config struct {
}

func NewFromFile(filePath string) (*Config, error) {
cfg := Config{}
cfg := DefaultConfig
if _, err := toml.DecodeFile(filePath, &cfg); err != nil {
return nil, err
}
Expand Down
13 changes: 13 additions & 0 deletions minimal.config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Chain API configuration
[chain]
# List of chain API to connect to
apis = ["token:/ip4/127.0.0.1/tcp/1234/http"]

[harmonydb]
# URL to connect to the HarmonyDB database
url = "postgres://yugabyte:yugabyte@127.0.0.1:5433/curio?search_path=curio&target_session_attrs=any"

# Curio configuration
[curio]
# List of Curio WebRPC to connect to
apis = ["http://127.0.0.1:4701"]

0 comments on commit 13c767b

Please sign in to comment.