Commit 69838923 authored by Mio Iwakura's avatar Mio Iwakura


parent 770f142c
......@@ -93,6 +93,7 @@ void main()
auto httpsListener = listenHTTP(httpsSettings, httpsRouter);
scope (exit) httpsListener.stopListening();
auto httpRouter = new URLRouter;
httpRouter.get("/.well_known/acme-challenge/*", serveStaticFiles("public/"));
httpRouter.any("*", staticRedirect(https_domain, HTTPStatus.movedPermanently));
auto httpListener = listenHTTP(httpSettings, httpRouter);
scope (exit) httpListener.stopListening();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment