-
Notifications
You must be signed in to change notification settings - Fork 11
feat: add paragon hosting configuration for dev and local environments (FC-87) #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
brian-smith-tcril
merged 12 commits into
openedx:main
from
eduNEXT:afg/styles-hosting-setup
Sep 10, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
92ed5c9
feat: add bundle minification build step for hosting
Ang-m4 f8ae77a
feat: add paragon static server and caddy configuration
Ang-m4 495a875
feat: add configuration for Paragon theme URLs in dev and local
Ang-m4 43e45ef
feat: add conditional logic for serving compiled themes
Ang-m4 cd9a9a0
feat: update static server from nginx to caddy for serving compiled t…
Ang-m4 8a5f42e
fix: update tutor dependency to remove upper version limit
Ang-m4 7ed1172
feat: update Paragon theme configuration and static server settings
Ang-m4 5f5f5fe
feat: add tutor-mfe service integration
Ang-m4 218879c
fix: integration test dependencies
Ang-m4 3a4dbd3
feat: add integration tests for hosted files
Ang-m4 f983f08
fix(test): update LMS_HOST variable for hosting tests
Ang-m4 da10f35
fix: update MFE_CONFIG to use 'brandOverride' for theme URLs
Ang-m4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
plugins/tutor-contrib-paragon/tutorparagon/patches/mfe-caddyfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| {% if MFE_HOST_EXTRA_FILES %} | ||
| # Paragon static files hosting | ||
| handle_path /{{ PARAGON_STATIC_URL_PREFIX }}* { | ||
| @mincss { | ||
| # Match only minified CSS files | ||
| path_regexp mincss \.min\.css$ | ||
| } | ||
| handle @mincss { | ||
| root * /paragon-statics | ||
| file_server | ||
| } | ||
| } | ||
| {% endif %} |
3 changes: 3 additions & 0 deletions
3
plugins/tutor-contrib-paragon/tutorparagon/patches/mfe-volumes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% if MFE_HOST_EXTRA_FILES %} | ||
| - ../../{{ PARAGON_COMPILED_THEMES_PATH }}:/paragon-statics | ||
| {% endif %} |
5 changes: 5 additions & 0 deletions
5
plugins/tutor-contrib-paragon/tutorparagon/patches/openedx-lms-development-settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| {% if MFE_HOST_EXTRA_FILES %} | ||
| {% set PROTOCOL = 'https' if ENABLE_HTTPS else 'http' %} | ||
| {% set PARAGON_BASE_URL = PROTOCOL ~ "://" ~ "localhost" ~ ":" ~ 8002 ~ "/" ~ PARAGON_STATIC_URL_PREFIX%} | ||
| {% include "paragon/settings/mfe-common-settings" %} | ||
| {% endif %} |
5 changes: 5 additions & 0 deletions
5
plugins/tutor-contrib-paragon/tutorparagon/patches/openedx-lms-production-settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| {% if MFE_HOST_EXTRA_FILES %} | ||
| {% set PROTOCOL = 'https' if ENABLE_HTTPS else 'http' %} | ||
| {% set PARAGON_BASE_URL = PROTOCOL ~ "://" ~ MFE_HOST ~ "/" ~ PARAGON_STATIC_URL_PREFIX %} | ||
| {% include "paragon/settings/mfe-common-settings" %} | ||
| {% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not opposed to having this live here, but if we think postcss bundling paragon generated css will be a common thing then maybe it makes sense to build that functionality into the Paragon CLI. @PKulkoRaccoonGang thoughts?