diff --git a/runbot/templates/nginx.xml b/runbot/templates/nginx.xml index 1c843991..81afd8a2 100644 --- a/runbot/templates/nginx.xml +++ b/runbot/templates/nginx.xml @@ -42,7 +42,9 @@ server { location /runbot/static/ { alias ; autoindex off; - location ~ /runbot/static/build/[^/]+/(logs|tests)/ { + return 404; + location /runbot/static/src { } + location ~ /runbot/static/build/[^/]+/(logs|tests|coverage)/ { autoindex on; add_header 'Access-Control-Allow-Origin' ''; }