feat: use s3 storage for static files
Description
Add a new setting, GROVE_ENABLE_S3_STATIC_FILES
. If enabled, then static files for the LMS and CMS (not MFE's) will be served from the configured static bucket.
Supporting information
Testing instructions
Steps to test the changes:
Visit:
-
Verify that the static assets are loaded from a DO Spaces bucket for the URLs:
- https://es1.kgdocluster.opencraft.hosting
- https://studio.es1.kgdocluster.opencraft.hosting
- Enable/disable this setting at will
- The repo for these instances can be found at https://gitlab.com/opencraft/devstacks/keith/grove-do
-
Verify that the static assets are loaded from a AWS S3 bucket for the URLs:
- https://lms.keith-grove-test.stage.opencraft.hosting
- https://studio.keith-grove-test.stage.opencraft.hosting
- Enable/disable this setting at will
- The repo for these instances can be found at https://gitlab.com/opencraft/devstacks/keith/grove-aws
Checklist
If any of the items below is not applicable, do not remove them, but put a check in it.
-
All providers include the new feature/change -
All affected providers can provision new clusters -
Unit tests are added/updated -
Documentation is added/updated -
The TOOLS_CONTAINER_IMAGE_VERSION
in ci_vars.yml is updated -
The grove-template repository is updated
Edited by Keith Grootboom