aboutsummaryrefslogtreecommitdiffhomepage
path: root/daemon
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-04-27 22:25:00 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-04-27 22:25:00 -0700
commit04adf5fdf53951f270923c41171a52575db53e46 (patch)
tree79a67f03cddd310e1b3c692fd938f22be7d9ea77 /daemon
parentddd3af4b85f5a2fe85c17a9cc30cf54743b9eb59 (diff)
Add middleware to read X-Forwarded-Proto header
Diffstat (limited to 'daemon')
-rw-r--r--daemon/routes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/routes.go b/daemon/routes.go
index 74445c3..f11e6d6 100644
--- a/daemon/routes.go
+++ b/daemon/routes.go
@@ -39,6 +39,7 @@ func routes(cfg *config.Config, store *storage.Storage, feedHandler *feed.Handle
router = router.PathPrefix(cfg.BasePath()).Subrouter()
}
+ router.Use(middleware.HeaderConfig)
router.Use(middleware.Logging)
router.HandleFunc("/healthcheck", func(w http.ResponseWriter, r *http.Request) {