diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d178f8..5c2d890 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Changelog +- 2019-01-27 [Bugfix] Fix video transcript/srt upload and download of user-uploaded files. Thanks @dannielariola! - 2019-01-20 [Improvement] Make it easy to load custom settings for the local production install - 2019-01-16 [Improvement] Switch license from MIT to AGPL - 2019-01-04 [Bugfix] Fix xqueue consumer command diff --git a/deploy/local/templates/docker-compose.yml b/deploy/local/templates/docker-compose.yml index d1ad208..28ae7f6 100644 --- a/deploy/local/templates/docker-compose.yml +++ b/deploy/local/templates/docker-compose.yml @@ -52,6 +52,8 @@ services: volumes: - ../env/nginx:/etc/nginx/conf.d/ - ../../data/openedx:/var/www/openedx:ro + - ../../data/cms:/openedx/data/cms/:ro + - ../../data/lms:/openedx/data/lms/:ro - ../../data/letsencrypt:/etc/letsencrypt/:ro depends_on: - lms diff --git a/deploy/templates/nginx/cms.conf b/deploy/templates/nginx/cms.conf index 045aaa8..57aa78c 100644 --- a/deploy/templates/nginx/cms.conf +++ b/deploy/templates/nginx/cms.conf @@ -42,6 +42,12 @@ server { try_files $uri @proxy_to_cms_app; } + location ~ ^/media/(?P.*) { + root /openedx/data/cms/uploads; + try_files /$file =404; + expires 31536000s; + } + location ~ ^/static/(?P.*) { root /var/www/openedx; try_files /staticfiles/$file /course_static/$file =404;