Skip to content

Commit

Permalink
Fix/config gen (#590)
Browse files Browse the repository at this point in the history
* fixed default config gen inconsistencies

* added extensions to default_config.toml
  • Loading branch information
brennanjl authored and jchappelow committed Mar 11, 2024
1 parent 399f7a5 commit 4c0099a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/kwil-admin/nodecfg/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const defaultConfigTemplate = `
### Logging Config Options ###
#######################################################################
[log]
# Output level for logging, default is "info". Other options are "debug", "error", "warn", "trace"
level = "{{ .Logging.Level }}"
Expand All @@ -85,8 +86,8 @@ time_format = "{{ .Logging.TimeEncoding }}"
#######################################################################
### App Config Options ###
#######################################################################
[app]
# Node's Private key
private_key_path = "{{ .AppCfg.PrivateKeyPath }}"
Expand Down Expand Up @@ -137,8 +138,10 @@ hostname = "{{ .AppCfg.Hostname }}"
#######################################################################
### Extension Configuration ###
### Extension Configuration ###
#######################################################################
[app.extensions]
{{- range $extensionName, $configs := .AppCfg.Extensions }}
[app.extensions.{{$extensionName}}]
{{- range $key, $value := $configs }}
Expand Down
5 changes: 5 additions & 0 deletions cmd/kwild/config/default_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ tls_key_file = ""
# Kwild Server hostname
hostname = ""

#######################################################################
### Extension Configuration ###
#######################################################################
[app.extensions]

#######################################################################
### Snapshot store Config Options ###
#######################################################################
Expand Down

0 comments on commit 4c0099a

Please sign in to comment.