Skip to content

Instantly share code, notes, and snippets.

@Purush0th
Created December 26, 2023 13:46
Show Gist options
  • Save Purush0th/0799b8e0de9024de8b222cef51c0a157 to your computer and use it in GitHub Desktop.
Save Purush0th/0799b8e0de9024de8b222cef51c0a157 to your computer and use it in GitHub Desktop.
Superset Config With Embed SDK enabled
# Superset specific config
ROW_LIMIT = 5000
# Flask App Builder configuration
# Your App secret key will be used for securely signing the session cookie
# and encrypting sensitive information on the database
# Make sure you are changing this key for your deployment with a strong key.
# Alternatively you can set it with `SUPERSET_SECRET_KEY` environment variable.
# You MUST set this for production environments or the server will not refuse
# to start and you will see an error in the logs accordingly.
SECRET_KEY = '3OPRXMykQURFLoMpdogayJ58dJqfAZAr'
# The SQLAlchemy connection string to your database backend
# This connection defines the path to the database that stores your
# superset metadata (slices, connections, tables, dashboards, ...).
# Note that the connection information to connect to the datasources
# you want to explore are managed directly in the web UI
# The check_same_thread=false property ensures the sqlite client does not attempt
# to enforce single-threaded access, which may be problematic in some edge cases
SQLALCHEMY_DATABASE_URI = 'sqlite:////home/falcon/app/superset_sqlite.db?check_same_thread=false'
# Flask-WTF flag for CSRF
WTF_CSRF_ENABLED = True
# Add endpoints that need to be exempt from CSRF protection
WTF_CSRF_EXEMPT_LIST = []
# A CSRF token that expires in 1 year
WTF_CSRF_TIME_LIMIT = 60 * 60 * 24 * 365
# Set this API key to enable Mapbox visualizations
MAPBOX_API_KEY = ''
TALISMAN_ENABLED = False
SUPERSET_WEBSERVER_ADDRESS = '0.0.0.0'
SUPERSET_WEBSERVER_PORT = 8088
#Embed guest user role like
GUEST_ROLE_NAME="AppEmbed"
# Feature flags
FEATURE_FLAGS = {
"EMBEDDED_SUPERSET": True,
"DRILL_TO_DETAIL" : True,
"DRILL_BY" : True
}
#CORS Settings
ENABLE_CORS = True
CORS_OPTIONS = {
'supports_credentials': True,
'allow_headers': ['*'],
'resources':['*'],
'origins': ['*']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment