1
0
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:
Amir Raminfar
2022-12-12 09:37:54 -08:00
committed by GitHub
parent d39e2514b2
commit a6ba94e03f
8 changed files with 40 additions and 23 deletions

View File

@@ -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 {