diff --git a/.gitignore b/.gitignore index 12edea75b..a0f7330b9 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ __pycache__/ *$py.class chart.png video.mp4 -hostedimages/ # C extensions *.so diff --git a/files/routes/static.py b/files/routes/static.py index a6b8c0ba6..291280a67 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -254,7 +254,7 @@ def static_service(path): @app.get('/hostedimages/') @limiter.exempt def images(path): - resp = make_response(send_from_directory('./images', path)) + resp = make_response(send_from_directory('/hostedimages', path)) resp.headers.remove("Cache-Control") resp.headers.add("Cache-Control", "public, max-age=2628000") return resp