diff --git a/deployment/docker/nginx.conf b/deployment/docker/nginx.conf index 7f249b550..609301495 100644 --- a/deployment/docker/nginx.conf +++ b/deployment/docker/nginx.conf @@ -60,6 +60,14 @@ http { deny all; return 404; } + location /static/staticfiles.json { + deny all; + return 404; + } + location /static/CACHE/manifest.json { + deny all; + return 404; + } location /static/ { alias /pretix/src/pretix/static.dist/; access_log off; diff --git a/doc/admin/installation/manual_smallscale.rst b/doc/admin/installation/manual_smallscale.rst index 562a24e58..841154055 100644 --- a/doc/admin/installation/manual_smallscale.rst +++ b/doc/admin/installation/manual_smallscale.rst @@ -248,6 +248,14 @@ The following snippet is an example on how to configure a nginx proxy for pretix return 404; } + location /static/staticfiles.json { + deny all; + return 404; + } + location /static/CACHE/manifest.json { + deny all; + return 404; + } location /static/ { alias /var/pretix/venv/lib/python3.11/site-packages/pretix/static.dist/; access_log off;