Configuration¶
rpodder is configured through environment variables (prefixed with RPODDER_) or a TOML config file. Environment variables take precedence over the config file.
Config file¶
Example config file:
database_url = "sqlite:///var/lib/rpodder/rpodder.db"
host = "0.0.0.0"
port = 3005
run_migrations = true
registration = "open"
base_url = "https://podcast.example.com"
Environment variables¶
All settings use the RPODDER_ prefix. The prefix is stripped and the remainder becomes the key.
Core¶
| Variable | Default | Description |
|---|---|---|
RPODDER_DATABASE_URL |
sqlite://rpodder.db |
Database connection string. Use postgres://user:pass@host:5432/db for PostgreSQL or sqlite:///path/to/file.db for SQLite |
RPODDER_HOST |
0.0.0.0 |
Bind address. Use 127.0.0.1 to restrict to localhost only |
RPODDER_PORT |
3005 |
Bind port |
RPODDER_RUN_MIGRATIONS |
true |
Automatically run database migrations on startup. The migrations are built into the binary |
RPODDER_BASE_URL |
Public URL for OAuth callbacks and email links (e.g. https://podcast.example.com) |
Sessions¶
| Variable | Default | Description |
|---|---|---|
RPODDER_SESSION_DURATION_DAYS |
90 |
How long login sessions (both regular and SSO) remain valid, in days |
Registration¶
| Variable | Default | Description |
|---|---|---|
RPODDER_REGISTRATION |
open |
Registration mode: open (anyone can register), closed (admin creates users), invite (email activation required) |
RPODDER_PUBLIC_DIRECTORY |
true |
Let anyone browse and search the podcasts this server's users subscribe to, as on gpodder.net. Set false on a private instance: the directory, search, toplist, tag and podcast-data endpoints then answer only a logged-in user (401 otherwise), and the web UI sends logged-out visitors to the login page |
Podcast apps and a private directory
With RPODDER_PUBLIC_DIRECTORY=false, an app that searches or opens the toplist without sending its credentials gets 401. Syncing is unaffected, since it always authenticates.
First user exception
If no active users exist in the database, registration is always allowed regardless of this setting. The first user automatically becomes an admin.
SMTP (email)¶
Required for invite registration mode, password reset emails, and admin-triggered password resets.
| Variable | Default | Description |
|---|---|---|
RPODDER_SMTP_HOST |
SMTP server hostname | |
RPODDER_SMTP_PORT |
25 |
SMTP port |
RPODDER_SMTP_USER |
SMTP username (optional) | |
RPODDER_SMTP_PASSWORD |
SMTP password (optional) | |
RPODDER_SMTP_FROM |
rpodder@{smtp_host} |
From address for emails |
RPODDER_SMTP_SECURITY |
none |
none, starttls, or tls |
OAuth2 / OIDC (SSO)¶
| Variable | Default | Description |
|---|---|---|
RPODDER_OAUTH_ISSUER_URL |
OIDC issuer URL (e.g. https://sso.example.com/application/o/rpodder/) |
|
RPODDER_OAUTH_CLIENT_ID |
OAuth2 client ID | |
RPODDER_OAUTH_CLIENT_SECRET |
OAuth2 client secret | |
RPODDER_OAUTH_PROVIDER_NAME |
SSO |
Display name for the login button (e.g. Authentik, Google) |
RPODDER_OAUTH_ADMIN_GROUP |
OIDC group name that grants admin role. Users in this group are automatically made admin on every SSO login |
Feed fetching¶
| Variable | Default | Description |
|---|---|---|
RPODDER_ALLOW_PRIVATE_FEEDS |
false |
Let feed and website fetches reach loopback, private (RFC 1918, ULA), link-local and other non-public addresses, including host names that resolve to them. Turn it on only if you subscribe to feeds hosted on your own network. While it is off, fetches ignore a proxy set with HTTP_PROXY, HTTPS_PROXY or ALL_PROXY: the proxy would resolve host names itself, past this check. |
Warning
Feed URLs come from users, from redirects and from feeds themselves. With this on, any user who can add a feed can make rpodder send GET requests to services on its network.
Metrics¶
rpodder can expose Prometheus-compatible metrics on a dedicated port, separate from the main API. This prevents metrics from being exposed to public traffic — in Kubernetes, only create a Service for the metrics port internally.
| Variable | Default | Description |
|---|---|---|
RPODDER_METRICS_ENABLED |
false |
Enable the dedicated metrics server |
RPODDER_METRICS_HOST |
0.0.0.0 |
Metrics server bind address |
RPODDER_METRICS_PORT |
9091 |
Metrics server bind port |
Exposed metrics include:
- Business:
rpodder_users_total,rpodder_podcasts_total,rpodder_episodes_total,rpodder_subscriptions_total,rpodder_episode_actions_total,rpodder_devices_total - Build info:
rpodder_build_info(labels: version, tag, sha, database) - Process:
rpodder_uptime_seconds,rpodder_available_cpus,process_resident_memory_bytes,process_virtual_memory_bytes,process_open_fds,process_max_fds - DB pool:
rpodder_db_pool_size,rpodder_db_pool_idle
Podcast Index¶
Podcast Index is an open, free podcast database with over 4 million podcasts. It powers rpodder's external search and trending charts, giving your users access to the entire podcast ecosystem — not just what's already indexed locally.
Get your free API key and secret at api.podcastindex.org (takes 30 seconds, no credit card needed).
| Variable | Default | Description |
|---|---|---|
RPODDER_PODCASTINDEX_KEY |
Podcast Index API key | |
RPODDER_PODCASTINDEX_SECRET |
Podcast Index API secret |
Highly recommended
Without Podcast Index, search only returns podcasts already subscribed to by users on your instance. With it, users can discover any podcast in existence and subscribe directly from the search results. rpodder fetches and indexes the feed automatically.
Dollar signs in secrets
If your Podcast Index secret contains $, escape it as $$ in .env files used by Docker Compose. For example: RPODDER_PODCASTINDEX_SECRET=abc$$def will be read as abc$def.
Database choice¶
SQLite¶
- Use when: personal use, 1-5 users, Raspberry Pi, simplest setup
- Connection string:
sqlite:///path/to/rpodder.dborsqlite://rpodder.db(relative) - Features: WAL mode enabled automatically, foreign keys enforced, FTS5 for search
PostgreSQL¶
- Use when: multiple users, thousands of podcasts, production deployment
- Connection string:
postgres://user:password@host:5432/database - Features: full-text search with
tsvector, connection pooling (20 max connections)
Both databases support the exact same feature set. All 13 repository traits are implemented for both backends.