1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Add middleware to read X-Forwarded-Proto header

This commit is contained in:
Frédéric Guillot 2018-04-27 22:25:00 -07:00
parent ddd3af4b85
commit 04adf5fdf5
3 changed files with 20 additions and 4 deletions

View file

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