improved code
This commit is contained in:
parent
dc62599565
commit
cec46d1290
@ -244,7 +244,15 @@ Add/Update Superset Configurations
|
|||||||
----------------------------------
|
----------------------------------
|
||||||
|
|
||||||
Use ``cairn-superset-settings`` patch to add or update `Superset configurations <https://github.com/apache/superset/blob/master/superset/config.py>`__.
|
Use ``cairn-superset-settings`` patch to add or update `Superset configurations <https://github.com/apache/superset/blob/master/superset/config.py>`__.
|
||||||
|
|
||||||
|
e.g, to customize visualizations, add following configurations in ``cairn-superset-settings`` patch::
|
||||||
|
|
||||||
|
APP_NAME = "<APP_NAME>"
|
||||||
|
APP_ICON = "<APP_ICON>"
|
||||||
|
APP_ICON_WIDTH = <APP_ICON_WIDTH>
|
||||||
|
|
||||||
Then apply changes with::
|
Then apply changes with::
|
||||||
|
|
||||||
tutor local launch
|
tutor local launch
|
||||||
|
|
||||||
Troubleshooting
|
Troubleshooting
|
||||||
|
|||||||
@ -84,6 +84,12 @@ RESULTS_BACKEND = RedisCache(
|
|||||||
db=REDIS_CACHE_DB,
|
db=REDIS_CACHE_DB,
|
||||||
key_prefix="superset_results",
|
key_prefix="superset_results",
|
||||||
)
|
)
|
||||||
|
OPENEDX_LMS_ROOT_URL = "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}"
|
||||||
|
OPENEDX_CMS_ROOT_URL = "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ CMS_HOST }}"
|
||||||
|
|
||||||
|
if os.environ.get("FLASK_ENV") == "development":
|
||||||
|
OPENEDX_LMS_ROOT_URL = "http://{{ LMS_HOST }}:8000"
|
||||||
|
OPENEDX_CMS_ROOT_URL = "http://{{ CMS_HOST }}:8001"
|
||||||
|
|
||||||
{% if CAIRN_ENABLE_SSO %}
|
{% if CAIRN_ENABLE_SSO %}
|
||||||
# Authentication
|
# Authentication
|
||||||
@ -91,10 +97,9 @@ RESULTS_BACKEND = RedisCache(
|
|||||||
# https://flask-appbuilder.readthedocs.io/en/latest/security.html#authentication-oauth
|
# https://flask-appbuilder.readthedocs.io/en/latest/security.html#authentication-oauth
|
||||||
from flask_appbuilder.security.manager import AUTH_OAUTH
|
from flask_appbuilder.security.manager import AUTH_OAUTH
|
||||||
AUTH_TYPE = AUTH_OAUTH
|
AUTH_TYPE = AUTH_OAUTH
|
||||||
OPENEDX_LMS_ROOT_URL = "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}"
|
|
||||||
OPENEDX_SSO_CLIENT_ID = "{{ CAIRN_SSO_CLIENT_ID }}"
|
OPENEDX_SSO_CLIENT_ID = "{{ CAIRN_SSO_CLIENT_ID }}"
|
||||||
if os.environ.get("FLASK_ENV") == "development":
|
if os.environ.get("FLASK_ENV") == "development":
|
||||||
OPENEDX_LMS_ROOT_URL = "http://{{ LMS_HOST }}:8000"
|
|
||||||
OPENEDX_SSO_CLIENT_ID = "{{ CAIRN_SSO_CLIENT_ID }}-dev"
|
OPENEDX_SSO_CLIENT_ID = "{{ CAIRN_SSO_CLIENT_ID }}-dev"
|
||||||
OAUTH_PROVIDERS = [
|
OAUTH_PROVIDERS = [
|
||||||
{
|
{
|
||||||
@ -162,12 +167,6 @@ FEATURE_FLAGS = {
|
|||||||
"EMBEDDED_SUPERSET": True
|
"EMBEDDED_SUPERSET": True
|
||||||
}
|
}
|
||||||
|
|
||||||
# Embedded Dashboard CORS
|
|
||||||
OPENEDX_CMS_ROOT_URL = "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ CMS_HOST }}"
|
|
||||||
|
|
||||||
if os.environ.get("FLASK_ENV") == "development":
|
|
||||||
OPENEDX_CMS_ROOT_URL = "http://{{ CMS_HOST }}:8001"
|
|
||||||
|
|
||||||
ENABLE_CORS=True
|
ENABLE_CORS=True
|
||||||
CORS_OPTIONS={
|
CORS_OPTIONS={
|
||||||
"origins": [
|
"origins": [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user