Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func parseConfig(cmd *cobra.Command) {
config.AppendToFile = getStringCfgVal("append-to-file", prefix+"APPEND_TO_FILE", cmd)
config.AppendToFileRotateMaxSize = getStringCfgVal("rotate-file-size", prefix+"ROTATE_FILE_SIZE", cmd)
config.ApiKey = getStringCfgVal("api-key", prefix+"API_KEY", cmd)
config.HttpPathPrefix = getStringCfgVal("ui-path", prefix+"UI_PATH", cmd)

config.BulkWindowMs = getIntCfgVal("bulk-window", cmd)
config.MaxMessageCount = getIntCfgVal("max-message-count", cmd)
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ func init() {

rootCmd.PersistentFlags().StringP("port", "p", "8080", "Port on which the Web UI will be served (env: LOGDY_PORT)")
rootCmd.PersistentFlags().StringP("ui-ip", "", "127.0.0.1", "Bind Web UI server to a specific IP address (env: LOGDY_UI_IP)")
rootCmd.PersistentFlags().StringP("ui-path", "", "", "Bind WEB UI server to a specific subpath (env: LOGDY_UI_PATH)")
rootCmd.PersistentFlags().StringP("ui-pass", "", "", "Password that will be used to authenticate in the UI (env: LOGDY_UI_PASS)")
rootCmd.PersistentFlags().StringP("config", "", "", "Path to a file where a config (json) for the UI is located (env: LOGDY_CONFIG)")
rootCmd.PersistentFlags().StringP("append-to-file", "", "", "Path to a file where message logs will be appended, the file will be created if it doesn't exist (env: LOGDY_APPEND_TO_FILE)")
Expand Down