-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add & enable production MFEs on production
We have openedx running behind proxy on production. Caddyfile patches in already existing home & course_about MFEs have `header_up X-Forwarded-Port 80` which might be causing issues in Google Chrome.
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 @@ | ||
name: course-about-mfe-production | ||
version: 0.1.0 | ||
patches: | ||
caddyfile-lms: | | ||
route /courses/*/about { | ||
reverse_proxy "mfe:8002" { | ||
rewrite /course_about/{uri} | ||
} | ||
} | ||
route /course_about/* { | ||
reverse_proxy "mfe:8002" | ||
} |
This file contains 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 @@ | ||
name: home-mfe-production | ||
version: 0.1.0 | ||
patches: | ||
caddyfile-lms: | | ||
route / { | ||
reverse_proxy "mfe:8002" { | ||
rewrite /home/{uri} | ||
} | ||
} | ||
route /home/* { | ||
reverse_proxy "mfe:8002" | ||
} |