mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 21:33:18 +01:00
Adds hostname config for setting UI parameter (#1983)
* Adds hostname config to setting a hostname in title * Also updates title for hostname
This commit is contained in:
@@ -21,6 +21,7 @@ type Config struct {
|
||||
Version string
|
||||
Username string
|
||||
Password string
|
||||
Hostname string
|
||||
}
|
||||
|
||||
type handler struct {
|
||||
@@ -110,11 +111,13 @@ func (h *handler) executeTemplate(w http.ResponseWriter, req *http.Request) {
|
||||
Version string
|
||||
AuthorizationNeeded bool
|
||||
Secured bool
|
||||
Hostname string
|
||||
}{
|
||||
path,
|
||||
h.config.Version,
|
||||
h.isAuthorizationNeeded(req),
|
||||
secured,
|
||||
h.config.Hostname,
|
||||
}
|
||||
err = tmpl.Execute(w, data)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user