From 753e15b59ec840bd478009c5616d33dbd561cd29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Mon, 3 Jun 2024 19:32:38 -0700 Subject: [PATCH] handle certbot challenge --- cmd/web/routes.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/web/routes.go b/cmd/web/routes.go index bf75b26..928fa13 100644 --- a/cmd/web/routes.go +++ b/cmd/web/routes.go @@ -32,6 +32,9 @@ func routes(app *config.AppConfig) http.Handler { app.Logger.Debug("Setting up /static file server") mux.Handle("/static/*", http.StripPrefix("/static", http.FileServer(http.Dir("./static")))) + // handle certbot challenge + mux.Handle("/.well-known/acme-challenge/*", http.StripPrefix("/.well-known/acme-challenge", http.FileServer(http.Dir("./.well-known/acme-challenge")))) + // Setup routes for handlers for _, handler := range handlers.Handlers { app.Logger.Info("Setting up handler for " + handler.Handles)