From a2e859af5d64f255745a434d04525825fd07a0eb Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Thu, 18 Aug 2022 17:17:56 +0100 Subject: [PATCH] Tidied up file mounting locations and server alias --- docker-compose.yml | 4 ++-- nginx/conf.d/ref-test-app.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b86ea06..b44e458 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,9 +13,9 @@ services: - ./src/html/robots.txt:/usr/share/nginx/html/robots.txt:ro - ./ref-test/app/root:/usr/share/nginx/html/root:ro - ./ref-test/app/admin/static:/usr/share/nginx/html/admin/static:ro - - ./ref-test/app/editor/static:/usr/share/nginx/html/admin/editor/static:ro + - ./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/admin/view/static:ro + - ./ref-test/app/view/static:/usr/share/nginx/html/view/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 d278a3b..7bc22da 100644 --- a/nginx/conf.d/ref-test-app.conf +++ b/nginx/conf.d/ref-test-app.conf @@ -37,12 +37,12 @@ server { location ^~ /admin/editor/static/ { include /etc/nginx/mime.types; - alias /usr/share/nginx/html/admin/editor/static/; + alias /usr/share/nginx/html/editor/static/; } location ^~ /admin/view/static/ { include /etc/nginx/mime.types; - alias /usr/share/nginx/html/admin/view/static/; + alias /usr/share/nginx/html/view/static/; } # Proxy to the main app for all other requests