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
1 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,10 @@ def get_app(config):
"/img/<filename:path>", "GET",
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(
"/data/img/<filename:path>", "GET",
lambda filename: bottle.static_file(