Tidied up file mounting locations and server alias
This commit is contained in:
parent
81b09190de
commit
5a508367c4
@ -13,9 +13,9 @@ services:
|
|||||||
- ./src/html/robots.txt:/usr/share/nginx/html/robots.txt:ro
|
- ./src/html/robots.txt:/usr/share/nginx/html/robots.txt:ro
|
||||||
- ./ref-test/app/root:/usr/share/nginx/html/root: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/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/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:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
|
@ -37,12 +37,12 @@ server {
|
|||||||
|
|
||||||
location ^~ /admin/editor/static/ {
|
location ^~ /admin/editor/static/ {
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
alias /usr/share/nginx/html/admin/editor/static/;
|
alias /usr/share/nginx/html/editor/static/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /admin/view/static/ {
|
location ^~ /admin/view/static/ {
|
||||||
include /etc/nginx/mime.types;
|
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
|
# Proxy to the main app for all other requests
|
||||||
|
Loading…
Reference in New Issue
Block a user