Improve Docker configurations

This commit is contained in:
rubenwardy
2020-01-18 01:20:32 +00:00
parent 6f230ee4b2
commit 095494f96f
8 changed files with 30 additions and 17 deletions

View File

@@ -72,7 +72,7 @@ from flask_login import logout_user
@app.route("/uploads/<path:path>")
def send_upload(path):
return send_from_directory("public/uploads", path)
return send_from_directory(app.config['UPLOAD_DIR'], path)
@menu.register_menu(app, ".help", "Help", order=19, endpoint_arguments_constructor=lambda: { 'path': 'help' })
@app.route('/<path:path>/')