Self-Hosting

Analytics Self-hosting Config


You can use environment variables to configure your Analytics Server.

General Settings

General server settings.

Parameters
    LOGFLARE_SINGLE_TENANT
    REQUIRED
    boolean

    This is will seed a singular user into the database, and will disable browser authentication. All browser usage will default to this user. Inviting team users and other team-related functionality is currently not supported for self-hosted. Logflare self-hosted is currently intended for single-user experience only.

    LOGFLARE_API_KEY
    REQUIRED
    string

    Allows you to pass in an API key that will used for authentication. This is intended for programmatic usage where an external program sets the API key. It is advised to use the UI to configure the access tokens instead. If this value is not provided, the default API key will be automatically generated.

    LOGFLARE_SUPABASE_MODE
    REQUIRED
    boolean

    This is a special mode for Logflare which will seed additional resources for usage with Supabase self-hosted.

    PHX_HTTP_PORT
    REQUIRED
    string

    Port which serves HTTP requests

    DB_SCHEMA
    REQUIRED
    string

    This ENV variable sets the search path to a custom database schema. This allows you to customize the schema used on the database.

    LOGFLARE_LOG_LEVEL
    REQUIRED
    string

    Allows the setting of the log level at runtime. For production settings, we advise warn.