Skip to content

Commit

Permalink
change: default webui color schema, add: example.sh examples
Browse files Browse the repository at this point in the history
  • Loading branch information
paepckehh committed Oct 24, 2024
1 parent bc03036 commit d9f7e6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

// global const
const _version = "v0.1.16"
const _version = "v0.1.18"

// global var
var (
Expand Down
2 changes: 2 additions & 0 deletions example-env-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export OPN_DEBUG='true'
export OPN_SYNC_PKG='true'
export OPN_HTTPD_ENABLE='true'
export OPN_HTTPD_SERVER='127.0.0.1:6464'
export OPN_HTTPD_COLOR_FG='white'
export OPN_HTTPD_COLOR_BG='#17202A'
export OPN_RSYSLOG_ENABLE='true'
export OPN_RSYSLOG_SERVER='192.168.122.1:5140'
export OPN_GRAFANA_WEBUI='http://localhost:9090'
Expand Down
4 changes: 2 additions & 2 deletions setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ func Setup() (*OPNCall, error) {
config.Httpd.CAcert = os.Getenv("OPN_HTTPD_CACERT")
config.Httpd.CAkey = os.Getenv("OPN_HTTPD_CAKEY")
config.Httpd.CAClient = os.Getenv("OPN_HTTPD_CACLIENT")
config.Httpd.Color.FG = "black"
config.Httpd.Color.BG = "orange"
config.Httpd.Color.FG = "white"
config.Httpd.Color.BG = "grey"
if _, ok := os.LookupEnv("OPN_HTTPD_COLOR_FG"); ok {
config.Httpd.Color.FG = os.Getenv("OPN_HTTPD_COLOR_FG")
}
Expand Down

0 comments on commit d9f7e6d

Please sign in to comment.