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_PUBLIC_ACCESS_TOKEN
    REQUIRED
    string

    Allows you to pass in an API key that will used for authentication for ingestion only. This is intended for programmatic usage where an external program sets the API key. A default ingestion API key will be automatically generated.

    LOGFLARE_PRIVATE_ACCESS_TOKEN
    REQUIRED
    string

    Allows you to pass in an Management API key that will used for authentication. This is intended for programmatic usage where an external program sets the API key. This key is considered secret.

    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.