Files
Lakehouse/config/superset/superset_config.py
T
Lakehouse Admin 0402a4fbae
Validate Lakehouse config / validate (push) Has been cancelled
update (bart)
2026-06-28 17:08:57 +02:00

118 lines
3.5 KiB
Python

import os
SECRET_KEY = os.environ.get("SUPERSET_SECRET_KEY", "your-secret-key-here")
SQLALCHEMY_DATABASE_URI = "sqlite:////app/superset_home/superset.db"
CACHE_CONFIG = {
"CACHE_TYPE": "redis",
"CACHE_REDIS_URL": "redis://redis:6379/0",
"CACHE_DEFAULT_TIMEOUT": 300,
}
ENABLE_PROXY_FIX = True
TIMEZONE = "Europe/Amsterdam"
ROW_LIMIT = 50000
# Branding — logo must be same-origin (/static/...) for CSP (img-src 'self')
APP_NAME = "Dell"
APP_ICON = "/static/assets/images/dell-logo.svg"
LOGO_TARGET_PATH = "/superset/welcome/"
LOGO_TOOLTIP = "Dell · ATC Lakehouse"
FEATURE_FLAGS = {
"ENABLE_TEMPLATE_PROCESSING": True,
"ALERT_REPORTS": True,
"DASHBOARD_NATIVE_FILTERS": True,
"DASHBOARD_CROSS_FILTERS": True,
"ENABLE_ADVANCED_DATA_TYPES": True,
}
# Allow icons server if needed for other assets (optional)
TALISMAN_ENABLED = True
TALISMAN_CONFIG = {
"content_security_policy": {
"base-uri": ["'self'"],
"default-src": ["'self'"],
"img-src": [
"'self'",
"blob:",
"data:",
"https://apachesuperset.gateway.scarf.sh",
"https://static.scarf.sh/",
"http://atc-docker01.dell-atc.lan:8080",
"https://atc-docker01.dell-atc.lan:8080",
],
"worker-src": ["'self'", "blob:"],
"connect-src": ["'self'"],
"object-src": "'none'",
"style-src": ["'self'", "'unsafe-inline'"],
"font-src": ["'self'"],
"script-src": ["'self'", "'strict-dynamic'"],
},
"content_security_policy_nonce_in": ["script-src"],
"force_https": False,
"frame_options": "SAMEORIGIN",
}
EXTRA_CATEGORICAL_COLOR_SCHEMES = [
{
"id": "palantir_ops",
"description": "Palantir OPS — blue, cyan, orange, teal",
"label_colors": {},
"isDefault": True,
"colors": [
"#3b82f6", "#22d3ee", "#fb923c", "#2dd4bf", "#fbbf24",
"#a78bfa", "#f472b6", "#34d399", "#60a5fa", "#94a3b8",
],
},
]
EXTRA_SEQUENTIAL_COLOR_SCHEMES = [
{
"id": "palantir_blue",
"description": "Palantir blue gradient",
"isDefault": True,
"colors": ["#040c18", "#0c1a30", "#1e40af", "#3b82f6", "#22d3ee", "#7dd3fc"],
},
]
PALANTIR_FONTS = [
"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap",
]
PALANTIR_TOKENS = {
"brandAppName": "Dell",
"brandLogoAlt": "Dell",
"brandLogoUrl": "/static/assets/images/dell-logo.svg",
"brandLogoMargin": "8px 12px 8px 0",
"brandLogoHref": "/",
"brandLogoHeight": "32px",
"colorPrimary": "#007DB8",
"colorLink": "#22d3ee",
"colorSuccess": "#2dd4bf",
"colorWarning": "#fbbf24",
"colorError": "#f87171",
"colorInfo": "#38bdf8",
"colorBgBase": "#040c18",
"colorBgLayout": "#061428",
"colorBgContainer": "#0c1a30",
"colorBgElevated": "#0f2444",
"colorBorder": "#1e3a5f",
"colorBorderSecondary": "rgba(56, 132, 220, 0.22)",
"colorText": "#e8eef7",
"colorTextSecondary": "#94a3b8",
"colorTextTertiary": "#64748b",
"fontUrls": PALANTIR_FONTS,
"fontFamily": "'DM Sans', Inter, Helvetica, Arial, sans-serif",
"fontFamilyCode": "'JetBrains Mono', 'IBM Plex Mono', monospace",
"borderRadius": 8,
"borderRadiusLG": 12,
}
THEME_DEFAULT = {
"algorithm": "dark",
"token": PALANTIR_TOKENS,
}
THEME_DARK = None
ENABLE_UI_THEME_ADMINISTRATION = False