Compare commits

..

2 Commits

Author SHA1 Message Date
ed100ee9e5 Added server directive for root folder 2022-08-18 17:08:03 +01:00
5dc6c4998d Corrected typo 2022-08-18 17:07:48 +01:00
2 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,7 @@ services:
volumes:
- ./certbot:/etc/letsencrypt:ro
- ./nginx:/etc/nginx
- ./src/html/robots.txt:/usr/share/nginx/html/robotx.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/admin/static:/usr/share/nginx/html/admin/static:ro
- ./ref-test/app/editor/static:/usr/share/nginx/html/admin/editor/static:ro

View File

@ -20,6 +20,11 @@ server {
include /etc/nginx/certbot-challenge.conf;
# Define locations for static files to be served by Nginx
location ^~ /root/ {
include /etc/nginx/mime.types;
alias /usr/share/nginx/html/root/;
}
location ^~ /quiz/static/ {
include /etc/nginx/mime.types;
alias /usr/share/nginx/html/quiz/static/;