From dbd8d6bbe36b97d7872e519ca63b95aba3a23152 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Tue, 7 Mar 2023 11:38:04 +0000 Subject: [PATCH] Serve static files for analysis directly --- docker-compose.yml | 1 + nginx/conf.d/ref-test-app.conf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index f67c37e..7b5281c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,7 @@ services: - ./ref-test/app/editor/static:/usr/share/nginx/html/editor/static:ro - ./ref-test/app/quiz/static:/usr/share/nginx/html/quiz/static:ro - ./ref-test/app/view/static:/usr/share/nginx/html/view/static:ro + - ./ref-test/app/analysis/static:/usr/share/nginx/html/analysis/static:ro ports: - 80:80 - 443:443 diff --git a/nginx/conf.d/ref-test-app.conf b/nginx/conf.d/ref-test-app.conf index 7bc22da..b1e99eb 100644 --- a/nginx/conf.d/ref-test-app.conf +++ b/nginx/conf.d/ref-test-app.conf @@ -45,6 +45,11 @@ server { alias /usr/share/nginx/html/view/static/; } + location ^~ /admin/analysis/static/ { + include /etc/nginx/mime.types; + alias /usr/share/nginx/html/analysis/static/; + } + # Proxy to the main app for all other requests location / { include /etc/nginx/conf.d/proxy_headers.conf;