Skip to content

Commit

Permalink
fix: redirect uri and setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ghassanmas committed Oct 16, 2022
1 parent a823b5c commit 0af59f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tutormfe/patches/caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
max_size 2MB
}
encode gzip
reverse_proxy /api/v1/mfe_config* {{ LMS_HOST }}{$default_site_port}
redir /api/mfe_config/v1* {{ "https" if ENABLE_HTTPS else "http" }}://{{ LMS_HOST }}{uri}
import proxy "mfe:8002"
}
4 changes: 3 additions & 1 deletion tutormfe/patches/openedx-lms-production-settings
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ PROFILE_MICROFRONTEND_URL = "{% if ENABLE_HTTPS %}https://{% else %}http://{% en
LOGIN_REDIRECT_WHITELIST.append("{{ MFE_HOST }}")
CORS_ORIGIN_WHITELIST.append("{% if ENABLE_HTTPS %}https://{% else %}http://{% endif %}{{ MFE_HOST }}")
CSRF_TRUSTED_ORIGINS.append("{{ MFE_HOST }}")
MFE_ENABLE_DYNAMIC_CONFIG = True

# Starts of Dynamic config API settings

ENABLE_MFE_CONFIG_API = True

ALLOWED_HOSTS.append("{% if ENABLE_HTTPS %}https://{% else %}http://{% endif %}{{ MFE_HOST }}")

MFE_CONFIG = {
Expand Down
2 changes: 1 addition & 1 deletion tutormfe/templates/mfe/build/mfe/env/production
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ SEGMENT_KEY=
SITE_NAME={{ PLATFORM_NAME|replace("'", "'\\''")|replace(" ", "\ ") }}
STUDIO_BASE_URL={{ "https" if ENABLE_HTTPS else "http" }}://{{ CMS_HOST }}
USER_INFO_COOKIE_NAME=user-info
MFE_CONFIG_API_URL=/api/v1/mfe_config
MFE_CONFIG_API_URL=/api/mfe_config/v1

{{ patch("mfe-env-production") }}

0 comments on commit 0af59f5

Please sign in to comment.