summaryrefslogtreecommitdiff
path: root/controller/app.go
diff options
context:
space:
mode:
authorJan Wolff <janw@mailbox.org>2025-09-15 18:29:49 +0200
committerJan Wolff <janw@mailbox.org>2025-09-15 18:29:49 +0200
commitdc78e94ea9a49af338a72a91ef7c344f0cef3894 (patch)
tree8306ee5ee5413b378a8e14f97f4a19556324416d /controller/app.go
parent96765ec3b16714f47322814738a217111fdadb4b (diff)
actually listen on configured address
Diffstat (limited to 'controller/app.go')
-rw-r--r--controller/app.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/controller/app.go b/controller/app.go
index 172a2a2..fa21306 100644
--- a/controller/app.go
+++ b/controller/app.go
@@ -28,6 +28,10 @@ func NewApp(configFilename string) *App {
}
}
+func (app App) Config() config.Configuration {
+ return app.config
+}
+
func (app App) requireAuth(res http.ResponseWriter, req *http.Request) bool {
username, password, ok := req.BasicAuth()
if ok && username == app.config.Authentication.Username && password == app.config.Authentication.Password {