Skip to content

Commit 26d0a39

Browse files
committed
docs: update comments to reflect proper env var handling
1 parent a138ff8 commit 26d0a39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ func ValidateConfig(configPath string) error {
8181

8282
// initViper sets up the viper instance with defaults, config file and environment variable support.
8383
// configPath is the path to the YAML config file (e.g. "config.yaml").
84-
// Environment variables are mapped with the prefix "CERTSTREAM" and "__" as key delimiter.
85-
// Example: CERTSTREAM_WEBSERVER__LISTEN_PORT overrides webserver.listen_port.
84+
// Environment variables are mapped with the prefix "CERTSTREAM" and "_" as key delimiter.
85+
// Example: CERTSTREAM_WEBSERVER_LISTEN_PORT overrides webserver.listen_port.
8686
func initViper(configPath string) *viper.Viper {
8787
v := viper.NewWithOptions(viper.KeyDelimiter("."))
8888

0 commit comments

Comments
 (0)