Podcast feeds
OwnTube can publish your playlists, queue, saved videos, subscriptions, single channels and channel tags as podcast feeds. Each feed comes in an audio version (.m4a) and a video version (.mp4), with chapters. Every user gets a secret feed address, and Copy RSS URL appears on those pages and in their ⋯ menus.
This is optional and needs a small public server.
Why a separate feeds server
Section titled “Why a separate feeds server”Podcast apps and directories fetch feeds from the internet, while OwnTube usually runs at home. The feeds server in feeds/server is a small public service: OwnTube sends it finished feed snapshots and it serves them as RSS. It contains no OwnTube logic and no media. The episodes in each feed point back to your OwnTube server’s /media/ path, so they play wherever the podcast app can reach your server, at home or over a VPN.
OwnTube (home) ──publish──▶ feeds server (public) ◀── podcast app fetches the feed ▲ │ └─────────────── plays /media/<id>.m4a ──────────────┘Set it up
Section titled “Set it up”-
Run the feeds server on a public host with HTTPS. From
feeds/server:Terminal window echo "PUBLISH_SECRET=$(openssl rand -base64 48)" > .envdocker compose up -d --buildThe compose file uses Caddy labels for
caddy-docker-proxy. Adjust the host name and network to your proxy. -
Give the OwnTube web app the address and the same secret:
Terminal window OWNTUBE_PUBLISH_TARGET=https://feeds.example.orgOWNTUBE_PUBLISH_SECRET=<the PUBLISH_SECRET value>OWNTUBE_APP_URL=https://tube.example.org -
Restart the app. It publishes about half a minute after something in a feed changes, and at least every 30 minutes.
To lock publishing down further, set PUBLISH_ALLOW_HOSTS or PUBLISH_ALLOW_IPS on the feeds server. /publish then needs both the secret and a matching source address.
Secret addresses
Section titled “Secret addresses”Feeds have addresses like https://feeds.example.org/rss/<token>/queue/queue.audio.xml. The token is random and per user; anyone with the address can read the feed, so treat it like a password. /rss/<token>/ lists all of a user’s feeds, and /rss/<token>/opml.xml has them as OPML for importing into a podcast app.
WebSub push for new uploads
Section titled “WebSub push for new uploads”YouTube announces uploads through Google’s WebSub hub, which can only deliver to a public address. Set this on the feeds server:
WEBSUB_CALLBACK_URL=https://feeds.example.org/websub/callbackThe feeds server then subscribes to your channels and keeps the notifications. OwnTube collects them about once a minute, so new videos appear in Subscriptions within a minute or two instead of at the next background refresh. OWNTUBE_WEBSUB=false on the web app turns this off.
Pushing feeds to podcast apps
Section titled “Pushing feeds to podcast apps”A second, optional hub in feeds/hub tells podcast apps that support WebSub when a feed changed, so they refresh right away. Set HUB_URL, HUB_PUBLISH_TOKEN and PUBLIC_URL on the feeds server; see feeds/hub/README.md.