Configuration #
Default path as defined in the source code :
flags := rootCmd.PersistentFlags() // ANCHOR: default_config_path config := flags.String("config", "/etc/wtf-go/config.yaml", "Path to the configuration file") // ANCHOR_END: default_config_path verbose := flags.Bool("verbose", false, "Enable verbose logging (debug level)")Example #
This is the actual configuration file used for the local deployment.
log: level: debug format: consoleserver: listen_address: ":8080"Syntax #
log.level:- Level used for logging.
Valid values:trace,debug,info,warn,error,fatal,panic log.format:- Logging output format.
Valid values :json: JSON formatted outputconsole: Shiny debugging colored output for console
server.listen_address:- Address used to listen for incoming HTTP requests with fiber/App.Listen.
100%