Added nginx static serving editor files

This commit is contained in:
Vivek Santayana 2022-06-22 11:18:53 +01:00
parent 5d27baee08
commit 91dc93758a
2 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,7 @@ services:
- ./certbot:/etc/letsencrypt:ro
- ./nginx:/etc/nginx
- ./src/html:/usr/share/nginx/html/
- ./ref-test/app/editor/static:/usr/share/nginx/html/admin/editor/static
- ./ref-test/app/admin/static:/usr/share/nginx/html/admin/static
- ./ref-test/app/quiz/static:/usr/share/nginx/html/quiz/static
- ./ref-test/app/root:/usr/share/nginx/html/root

View File

@ -29,6 +29,11 @@ server {
alias /usr/share/nginx/html/admin/static/;
}
location ^~ /admin/editor/static/ {
include /etc/nginx/mime.types;
alias /usr/share/nginx/html/admin/editor/static/;
}
location / {
include /etc/nginx/conf.d/proxy_headers.conf;
proxy_pass http://reftest;