diff --git a/README.md b/README.md index 7c01f691a..65694873c 100644 --- a/README.md +++ b/README.md @@ -126,3 +126,4 @@ The following options are available for the `ui-for-docker` binary: * `--tlscert`: Path to the TLS certificate file (default `/certs/cert.pem`) * `--tlskey`: Path to the TLS key (default `/certs/key.pem`) * `--hide-label`, `-l`: Hide containers with a specific label in the UI +* `--logo`: URL to a picture to be displayed as a logo in the UI diff --git a/api/main.go b/api/main.go index 0a708b01f..3a51b8465 100644 --- a/api/main.go +++ b/api/main.go @@ -19,6 +19,7 @@ func main() { swarm = kingpin.Flag("swarm", "Swarm cluster support").Default("false").Short('s').Bool() labels = pairs(kingpin.Flag("hide-label", "Hide containers with a specific label in the UI").Short('l')) registries = pairs(kingpin.Flag("registries", "Supported Docker registries").Short('r')) + logo = kingpin.Flag("logo", "URL for the logo displayed in the UI").String() ) kingpin.Parse() @@ -38,6 +39,7 @@ func main() { Swarm: *swarm, HiddenLabels: *labels, Registries: *registries, + Logo: *logo, } api := newAPI(apiConfig) diff --git a/api/settings.go b/api/settings.go index df32f870d..4936ceff4 100644 --- a/api/settings.go +++ b/api/settings.go @@ -10,6 +10,7 @@ type Settings struct { Swarm bool `json:"swarm"` HiddenLabels pairList `json:"hiddenLabels"` Registries pairList `json:"registries"` + Logo string `json:"logo"` } // configurationHandler defines a handler function used to encode the configuration in JSON diff --git a/index.html b/index.html index 434d0f048..389d0056e 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,8 @@