Skip to main content

Configuration Overview

Plausible CE is configured through environment variables set in the plausible-conf.env file. Configuration can also be loaded from files in /run/secrets for Docker Swarm secrets support.
All environment variables can optionally be read from files in the directory specified by CONFIG_DIR (defaults to /run/secrets).

Required Configuration

These settings must be configured for Plausible to start:

BASE_URL

The base URL where Plausible is accessible.
Must start with http:// or https://. Include the port if non-standard (e.g., http://localhost:8000).

SECRET_KEY_BASE

Secret key for encrypting session data and other sensitive information.
1

Generate the key

2

Add to config

Copy the generated string to plausible-conf.env
3

Keep secure

Never commit this value to version control or share publicly
Must be at least 32 bytes long. Changing this value will invalidate all existing sessions.

Database Configuration

PostgreSQL

SSL Certificate

Setting DATABASE_CACERTFILE automatically enables TLS for PostgreSQL connections.

ClickHouse

ClickHouse Performance Settings

Server Configuration

Network Settings

Setting HTTPS_PORT in Community Edition enables automatic TLS certificate management via Let’s Encrypt.

WebSocket URL

WebSocket host must match or be a subdomain of BASE_URL host.

Email Configuration

Plausible sends emails for reports, notifications, and user invitations.

Mailer Adapter

Direct SMTP without relay (recommended for CE):

Email Settings

Registration and Authentication

Registration Control

Community Edition defaults to invite_only registration mode.

Email Verification

Two-Factor Authentication

If not set, TOTP vault key is derived from SECRET_KEY_BASE.

Geolocation

Plausible includes a basic country database. For city-level geolocation:

Data Storage

Data Directories

S3 Storage (Optional)

For CSV exports and imports using S3-compatible storage:

Logging

Google Integration

For Google Search Console and Google Analytics imports:
1

Create OAuth Application

Go to Google Cloud Console and create OAuth 2.0 credentials
2

Set Redirect URI

Add {BASE_URL}/auth/google/callback as authorized redirect URI
3

Enable APIs

Enable Google Search Console API and Google Analytics API

Advanced Configuration

Admin Users

Custom Script Name

Background Jobs

Session Transfer

CAPTCHA (hCaptcha)

Monitoring and Observability

Environment

TLS/HTTPS Configuration

Automatic TLS (Let’s Encrypt)

Community Edition supports automatic HTTPS certificate management:
  • Domain must not be an IP address or localhost
  • Domain must be publicly accessible on port 80
  • DNS must point to your server

Import/Export Configuration

Configuration File Loading

From Files (Docker Secrets)

Plausible will look for files named after environment variables:

Extra Elixir Configuration

Validation Checklist

Next Steps

Upgrade Guide

Learn how to upgrade Plausible CE

Maintenance

Operations, backups, and monitoring