Spotrix
GitHubBlogs
  • Welcome to Spotrix!
  • Installing
    • Installing
    • Upgrading
  • Configuration
    • Basic configuration
    • Custom configuration
    • Caching
    • Connection to databases
      • Guinsoo 💎
      • Apache Pinot
      • Apache Presto
      • Trino
      • Apache Druid
      • ClickHouse
      • MindsDB
      • DuckDB
  • Creating Charts
    • Creating your charts
    • Creating your dashboard
    • Explore your data
  • Ecosystem
    • Data Ecosystem
    • Semantic Layer
  • Solutions
    • Financial Services
    • Next-Gen BI
  • Appendix
    • Contribute
    • Security
    • FAQs
Powered by GitBook
On this page

Was this helpful?

  1. Configuration

Basic configuration

To configure your application, you need to create a file spotrix_config.py and add it to your PYTHONPATH.

Here are some of the parameters you can set in that file:

# Spotrix basic config
ROW_LIMIT = 10000

SPOTRIX_WEBSERVER_PORT = 8088

# 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.
# You can generate a strong key using `openssl rand -base64 42`
SECRET_KEY = 'YOUR_OWN_RANDOM_GENERATED_SECRET_KEY'

# The SQLAlchemy connection string to your database backend
# This connection defines the path to the database that stores your
# spotrix 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
SQLALCHEMY_DATABASE_URI = 'sqlite:////path/to/spotrix.db'

# 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 = ''
PreviousUpgradingNextCustom configuration

Last updated 2 years ago

Was this helpful?

For more basic configuration, please refer .

here