Skip to content

Configuration

joakimkingstrom edited this page Nov 25, 2026 · 6 revisions

Configuration

Plekstender is configured in two places:

  • .env: settings the app needs to start. Changes need a restart (docker compose up -d).
  • Settings → Services, for admins: API keys for optional features. Most keys can go in either place. Keys entered in Settings are stored encrypted in the database and are checked when saved.

.env

Required

Setting What it does
APP_URL The address people open Plekstender at. Plex sign-in, the Last.fm connection and calendar feeds use it, so it must match exactly, including https://.
APP_SECRET_KEY At least 32 characters (openssl rand -hex 32). Encrypts the stored Plex tokens and API keys. Changing it signs everyone out and makes stored keys unreadable.
POSTGRES_PASSWORD The database password.

Access

Setting Default What it does
ACCESS_MODE servers Who may sign in until an admin changes it: servers (people with access to a Plex server the admin approved), allowlist (listed Plex usernames or emails) or open (any Plex account). See Administration.
INITIAL_ADMIN (empty) Optionally, the only Plex username or email that may become the first admin. The first admin always needs the setup code from the log too (see Installation).

General

Setting Default What it does
PLEKSTENDER_PORT 8080 The port the web app is published on.
PLEKSTENDER_LISTEN (PLEKSTENDER_PORT) Where the web app is published, as [address:]port. Behind a reverse proxy on the same host, use 127.0.0.1:8080, so nobody can go around the proxy.
TZ UTC Time zone for the logs and the worker's schedule. Stats use each person's own browser time zone.
LOG_LEVEL INFO DEBUG, INFO, WARNING or ERROR. At INFO the logs list every outgoing request, with API keys and tokens in the address replaced by ***.
FORWARDED_ALLOW_IPS 127.0.0.1 Addresses or ranges (e.g. 172.16.0.0/12) of reverse proxies whose X-Forwarded-For header is trusted. See Installation.
PLEKSTENDER_IMAGE, PLEKSTENDER_PULL_POLICY (build locally) Run the published image instead. See Installation.

Image search and HTTPS

Setting What it does
SEARXNG_URL The image search used for artist logos and album covers. With the bundled one (--profile search), use http://searxng:8080.
SEARXNG_SECRET A random secret for the bundled SearXNG (openssl rand -hex 32).
PLEKSTENDER_HOST, TRAEFIK_ACME_EMAIL HTTPS with the bundled Traefik. See Installation.
TRAEFIK_ENABLE, TRAEFIK_ENTRYPOINT, TRAEFIK_CERTRESOLVER Labels for a Traefik you already run (with PLEKSTENDER_HOST).

Optional services

Each of these switches on a feature. They're all free, at least for personal, non-commercial use. The keys and their limits belong to the admin's own accounts with those services, so check their terms.

Feature Service Where to get it .env setting (or Settings → Services)
Artist logos and album covers from fanart.tv fanart.tv fanart.tv/get-an-api-key FANART_API_KEY (Services → Artwork)
Album covers from Tidal, and importing Tidal playlists Tidal A free app at developer.tidal.com (client ID and secret) Services → Artwork or Playlists
Importing Last.fm history, and scrobbling to Last.fm Last.fm last.fm/api/account/create (API key and shared secret) LASTFM_API_KEY, LASTFM_SHARED_SECRET (Settings → Scrobbling)
Upcoming gigs JamBase The free Developer plan at data.jambase.com JAMBASE_API_KEY (Services → Gigs)
Upcoming gigs, second source Ticketmaster A free app at developer.ticketmaster.com (Consumer Key) TICKETMASTER_API_KEY (Services → Gigs)
Upcoming gigs in the UK Data Thistle A free account at api.datathistle.com (access and refresh tokens) Services → Gigs
Importing gigs you've been to, and setlists setlist.fm setlist.fm/settings/api SETLISTFM_API_KEY (Services → Gigs)
Importing Spotify playlists Spotify An app at developer.spotify.com/dashboard (client ID and secret) SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET (Services → Playlists)
Identifying music files by sound AcoustID acoustid.org/new-application ACOUSTID_API_KEY (Services → Identifying files)

Some things need no key at all:

  • album covers from Deezer, iTunes and the Cover Art Archive
  • MusicBrainz lookups. MusicBrainz asks apps for a contact and may slow down ones without: an email address or a web page, sent only to MusicBrainz. Set it on Settings → Services → MusicBrainz, or with MUSICBRAINZ_CONTACT (the Settings page wins)
  • OpenStreetMap place search
  • the gig map's tiles
  • the place search for gig locations (Open-Meteo)

Limits Plekstender keeps to

Service Limit Setting
JamBase The free plan includes 1,000 requests a month, and further requests are billed. Plekstender stops at its own cap and spreads each person's daily refresh over the month. JAMBASE_MONTHLY_CAP (default 900)
Ticketmaster 5,000 requests a day. TICKETMASTER_DAILY_CAP (default 4000)
Data Thistle 1,000 requests a month. Listings are only kept a day, as its terms ask. DATATHISTLE_DAILY_CAP (default 30)
Last.fm From 1 December 2026, a key only works while its owner has Last.fm Pro.
MusicBrainz About one request a second per address, shared with anything else on it (Lidarr, Picard…). When it says it's busy, Plekstender waits and tries again. MUSICBRAINZ_CONTACT
LRCLIB About 90 requests a minute. Lyrics lookups go one request every 0.7 seconds.

Home's Status card shows how close each service is to its limit, and the bell warns admins from 80%.

Clone this wiki locally