Miniflux doesn’t use any config file, only environment variables.

  • DEBUG: Toggle debug output (default is off)
  • WORKER_POOL_SIZE: Number of background processes (default=5)
  • POLLING_FREQUENCY: Refresh interval in minutes for feeds (default=60)
  • BATCH_SIZE: Number of feeds to send to the queue for each interval (default=10)
  • DATABASE_URL: Connection URL to connect to Postgresql (default=postgres://postgres:postgres@localhost/miniflux2?sslmode=disable)
  • DATABASE_MAX_CONNS: Number of concurrent database connections (default=20)
  • LISTEN_ADDR: HTTP server address (default=
  • BASE_URL: Base URL (default=http://localhost/)
  • CLEANUP_FREQUENCY: Cleanup job frequency, remove old sessions and archive read entries (Default is 24 hours)
  • HTTPS: Force cookies to use secure flag (default is empty, try to detect automatically if HTTPS is used)
  • CERT_FILE: SSL certificate (default=”“)
  • KEY_FILE: SSL private key (default=”“)
  • CERT_DOMAIN: Use Let’s Encrypt to configure automatically a certificate for this domain (default=”“)
  • CERT_CACHE: Let’s Encrypt cache directory (default=”/tmp/cert_cache”)
  • OAUTH2_PROVIDER: OAuth2 provider to use, at this time only “google” is supported (default=”“)
  • OAUTH2_CLIENT_ID: OAuth2 client ID (default=”“)
  • OAUTH2_CLIENT_SECRET: OAuth2 client secret (default=”“)
  • OAUTH2_REDIRECT_URL: OAuth2 redirect URL (default=”“)
  • OAUTH2_USER_CREATION: Set to 1 to authorize user creation (default=0)
  • DISABLE_HSTS: Disable HTTP Strict Transport Security header (enabled by default if HTTPS)
  • RUN_MIGRATIONS: Run database migrations, set to value to 1 (default=”“)
  • CREATE_ADMIN: Create admin user automatically, set value to 1 (default=”“)
  • ADMIN_USERNAME: Admin user login, used only if CREATE_ADMIN is enabled (default=”“)
  • ADMIN_PASSWORD: Admin user password, used only if CREATE_ADMIN is enabled (default=”“)
  • POCKET_CONSUMER_KEY: Pocket consumer API key for all users (default=”“)

Database Connection Parameters

Miniflux use the Golang library pq to communicate with Postgres. Connection parameters are available on this page.

The default value for DATABASE_URL is postgres://postgres:postgres@localhost/miniflux2?sslmode=disable. You don’t necessary need to use the URL format.

If you would like to connect via a Unix socket, you could do:

export DATABASE_URL="user=postgres password=postgres dbname=miniflux2 sslmode=disable host=/path/to/socket/folder"


Password that contains special characters like ^ might be rejected since Miniflux 2.0.3. Golang v1.10 is now validating the password and will return this error: net/url: invalid userinfo. To avoid this issue, do not use the URL format for DATABASE_URL or make sure the password is URL encoded.

Running Miniflux on port 443 or 80

Ports less than 1024 are reserved for privileged users. If you have installed Miniflux with the RPM or Debian package, systemd run the process as the miniflux user.

To give Miniflux the ability to bind to privileged ports as a non-root user, add the capability CAP_NET_BIND_SERVICE to the binary:

setcap cap_net_bind_service=+ep /usr/bin/miniflux

Check that the capability is added:

getcap /usr/bin/miniflux
/usr/bin/miniflux = cap_net_bind_service+ep

Here, we assume you installed the Miniflux binary into /usr/bin.

Let’s Encrypt Integration

You could use Let’s Encrypt to handle the SSL certificate automatically and activate HTTP/2.0.

export CERT_DOMAIN=my.domain.tld
  • Your server must be reachable publicly on port 443 and port 80 (http-01 challenge)
  • In this mode, LISTEN_ADDR is automatically set to :https
  • A cache directory is required, by default /tmp/cert_cache is used, it could be overrided by using the variable CERT_CACHE


Miniflux supports http-01 challenge since the version 2.0.2

Manual HTTPS Configuration

Here an example to generate your self-signed certificate:

# Generate the private key:
openssl genrsa -out server.key 2048
openssl ecparam -genkey -name secp384r1 -out server.key

# Generate the certificate:
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650

Start the server like this:

# Configure the environment variables:
export CERT_FILE=/path/to/server.crt
export KEY_FILE=/path/to/server.key
export LISTEN_ADDR=":https"

# Start the server:

Then you can access to your server by using an encrypted connection with the HTTP/2.0 protocol.

OAuth2 Authentication

OAuth2 allows you to sign in with an external provider. At this time, only Google is supported.


  1. Create a new project in Google Console
  2. Create a new OAuth2 client
  3. Set an authorized redirect URL: https://my.domain.tld/oauth2/google/callback
  4. Define the OAuth2 environment variables and start the process
export OAUTH2_PROVIDER=google
export OAUTH2_CLIENT_ID=replace_me
export OAUTH2_CLIENT_SECRET=replace_me
export OAUTH2_REDIRECT_URL=https://my.domain.tld/oauth2/google/callback


Now from the settings page, you can link your existing user to your Google account.

If you would like to authorize anyone to create user account, you must set OAUTH2_USER_CREATION=1. Since Google do not have the concept of username, the email address is used as username.

Reverse-Proxy Configuration with Subfolder

Since the version 2.0.2, you can host your Miniflux instance under a subfolder.

You must define the environment variable BASE_URL for Miniflux, for example:

export BASE_URL=

You can use the reverse-proxy software of your choice, here an example with Nginx:

location /rss/ {
    proxy_set_header Host $host;
    proxy_redirect off;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

This example assumes that you are running the Miniflux daemon on

Now you can access your Miniflux instance at In this configuration, cookies are using the path /rss.