· 7 years ago · Jun 18, 2018, 12:52 PM
1#---------------------------------------------------------
2# Superset specific config
3#---------------------------------------------------------
4ROW_LIMIT = 5000
5
6SUPERSET_WEBSERVER_PORT = 8088
7#---------------------------------------------------------
8
9#---------------------------------------------------------
10# Flask App Builder configuration
11#---------------------------------------------------------
12# Your App secret key
13SECRET_KEY = '\2\1thisismyscretkey\1\2\e\y\y\h'
14
15# The SQLAlchemy connection string to your database backend
16# This connection defines the path to the database that stores your
17# superset metadata (slices, connections, tables, dashboards, ...).
18# Note that the connection information to connect to the datasources
19# you want to explore are managed directly in the web UI
20SQLALCHEMY_DATABASE_URI = 'sqlite:////var/lib/superset/superset.db'
21
22# Flask-WTF flag for CSRF
23WTF_CSRF_ENABLED = True
24# Add endpoints that need to be exempt from CSRF protection
25WTF_CSRF_EXEMPT_LIST = []
26# A CSRF token that expires in 1 year
27WTF_CSRF_TIME_LIMIT = 60 * 60 * 24 * 365
28
29# Set this API key to enable Mapbox visualizations
30MAPBOX_API_KEY = ''
31ENABLE_PROXY_FIX = True
32
33from security import CustomSecurityManager
34CUSTOM_SECURITY_MANAGER = CustomSecurityManager