Serve the .well-known directory to support letsencrypt's ACME protocol

This commit is contained in:
Julien Wajsberg 2018-09-25 15:41:23 +02:00 committed by Phyks (Lucas Verney)
parent c2f0a2389a
commit dc9abadf12

View File

@ -121,6 +121,10 @@ def get_app(config):
"/img/<filename:path>", "GET", "/img/<filename:path>", "GET",
lambda filename: _serve_static_file("/img/{}".format(filename)) lambda filename: _serve_static_file("/img/{}".format(filename))
) )
app.route(
"/.well-known/<filename:path>", "GET",
lambda filename: _serve_static_file("/.well-known/{}".format(filename))
)
app.route( app.route(
"/data/img/<filename:path>", "GET", "/data/img/<filename:path>", "GET",
lambda filename: bottle.static_file( lambda filename: bottle.static_file(