Most RSS feeds only ship a headline and a one-paragraph teaser — to actually read the piece you have to click out to the publisher's site, which usually means a browser, an ad-loaded layout, and an internet connection.
rss-fulltext rewrites those feeds so the full article body travels with the
feed itself. For each entry it fetches the linked page, pulls the main content
out with readability, sanitises it, and writes the enriched feed to disk in
three formats: RSS (<name>.xml), Atom (<name>.atom), and JSON Feed
(<name>.json). Files are regenerated on a per-feed schedule and served as
static files over HTTP.
Useful when you want to:
- Read offline. Articles ship with the feed.
- Read on an e-reader. Full text instead of a link to a page your e-reader can't render.
- Escape publisher chrome. No popovers, ads, or newsletter modals.
- Archive what you read. Each refresh writes plain files to disk.
mkdir -p config
curl -o config/feeds.yaml https://raw.githubusercontent.com/mijndert/rss-fulltext/main/config/feeds.yaml
docker run -d --name rss-fulltext \
-p 127.0.0.1:8080:8080 \
-v "$PWD/config:/etc/rss-fulltext:ro" \
-v rss-fulltext-data:/var/lib/rss-fulltext \
-e LISTEN_ADDR=:8080 \
-e CONFIG_PATH=/etc/rss-fulltext/feeds.yaml \
--read-only \
--cap-drop=ALL \
--security-opt=no-new-privileges:true \
ghcr.io/mijndert/rss-fulltext:latestThe config directory is mounted (not the single file) so that edits to
config/feeds.yaml are picked up live — see Live reload.
The --read-only, --cap-drop=ALL, and --security-opt=no-new-privileges
flags match the hardening that Compose applies by default — the named volume
remains writable for the cache and generated feeds.
That's it. After a few seconds:
curl http://127.0.0.1:8080/feeds.json | jqEndpoints:
http://127.0.0.1:8080/<name>.xml— RSS 2.0http://127.0.0.1:8080/<name>.atom— Atomhttp://127.0.0.1:8080/<name>.json— JSON Feedhttp://127.0.0.1:8080/feeds.json— status of every configured feedhttp://127.0.0.1:8080/metrics— Prometheus metricshttp://127.0.0.1:8080/healthz— liveness probe
If you'd rather use Compose (gets you the locked-down read_only, cap_drop,
no-new-privileges defaults out of the box):
git clone https://github.com/mijndert/rss-fulltext.git
cd rss-fulltext
docker compose up -dThe repo ships a starter config/feeds.yaml; Compose mounts the config/
directory read-only. Edit config/feeds.yaml and your changes apply live — no
restart needed (see Live reload).
Compose binds the published port to loopback (127.0.0.1:8080). To expose
externally, put a reverse proxy in front of it — see Reverse proxy
below.
Each tagged release ships linux/macOS/FreeBSD binaries for amd64 and arm64 on
the Releases page. Verify
the tarball against checksums.txt, extract, and run:
CONFIG_PATH=./config/feeds.yaml OUTPUT_DIR=./out CACHE_DIR=./cache ./rss-fulltextThe binary also accepts a few subcommands:
rss-fulltext version # print version, commit, build date
rss-fulltext healthcheck # probe /healthz on the local port, exit 0 if healthyfeeds.yaml is the source of truth.
default_interval: 1h # used when a feed omits `interval`
feeds:
- name: techcrunch # appears in /<name>.xml — must match [a-z0-9_-]+
url: https://techcrunch.com/feed/
title: TechCrunch (full text)
interval: 30m # Go duration; minimum 1m
- name: hn
url: https://hnrss.org/frontpage
title: Hacker News (full text)Edit config/feeds.yaml and save — changes are picked up automatically within a
couple of seconds, no restart required.
The running process watches feeds.yaml and reconciles itself whenever the file
changes:
- Add a feed → a worker starts and its
/<name>.{xml,atom,json}files appear after the first refresh. - Remove a feed → its worker stops and its generated files are deleted.
- Change a feed's URL, interval, or title → its worker restarts and refreshes.
A few details worth knowing:
- Changes are detected by polling the file's modification time (every 2s by
default; tune with
CONFIG_RELOAD_INTERVAL, or set it to0to disable watching). Polling is used rather than inotify because inotify events do not fire reliably across Docker bind mounts. - Mount the directory (
./config), not the single file. Docker binds a single file by inode, so edits from editors that save by writing a temp file and renaming it over the original would be invisible to the container. The provided Compose file already mounts the directory. - If a save leaves the file temporarily invalid (a mid-edit truncation, or a validation error such as an uppercase name), the reload is skipped, a warning is logged, and the previously loaded feeds keep serving. The next valid save is applied.
Every knob below has a sensible default, so the shipped docker-compose.yml
sets only LISTEN_ADDR and CONFIG_PATH — the rest fall back to these defaults.
Override any of them via -e on docker run, the environment: block in
Compose, or the process environment for the bare binary.
| Variable | Default | Notes |
|---|---|---|
LISTEN_ADDR |
127.0.0.1:8080 (binary), :8080 (compose) |
bare binary binds loopback only — set :8080 to listen on all interfaces in containers |
CONFIG_PATH |
(required) | path to feeds.yaml |
OUTPUT_DIR |
/var/lib/rss-fulltext/feeds |
where <name>.xml, <name>.atom, <name>.json files land |
CACHE_DIR |
/var/lib/rss-fulltext/cache |
per-article cache; sha256 keys |
CACHE_TTL |
24h |
how long a fetched article body stays cached; 0 disables caching |
JANITOR_INTERVAL |
1h |
how often expired cache files are purged; 0 disables the janitor |
CONFIG_RELOAD_INTERVAL |
2s |
how often feeds.yaml is polled for live reload; 0 disables watching |
CONCURRENCY |
4 |
parallel article fetches per refresh |
REQUEST_TIMEOUT |
20s |
per-outbound-HTTP-request |
READ_TIMEOUT |
30s |
full request-read deadline on the HTTP server |
WRITE_TIMEOUT |
30s |
response-write deadline on the HTTP server |
FEED_TIMEOUT |
5m |
whole-refresh budget per feed |
MAX_ARTICLE_BYTES |
5242880 |
hard cap on body read by readability |
MAX_FEED_BYTES |
4194304 |
hard cap on the source-feed XML |
MAX_ITEMS_PER_FEED |
50 |
truncate longer feeds |
NEGATIVE_CACHE_TTL |
1h |
how long extractor errors are cached |
MAX_STALENESS |
24h |
how long to keep serving the previous file when upstream returns 0 items |
USER_AGENT |
rss-fulltext/2.0 |
sent on every outbound fetch |
ALLOW_PRIVATE_ADDRESSES |
false |
set true only for local testing — disables the SSRF guard |
Run rss-fulltext on loopback and put a reverse proxy in front for TLS and hostname routing. Examples:
rss.example.com {
reverse_proxy 127.0.0.1:8080
}
Caddy will obtain and renew a Let's Encrypt certificate automatically.
server {
listen 443 ssl http2;
server_name rss.example.com;
ssl_certificate /etc/letsencrypt/live/rss.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/rss.example.com/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}Add labels to the rss-fulltext service in docker-compose.yml:
labels:
- "traefik.enable=true"
- "traefik.http.routers.rss.rule=Host(`rss.example.com`)"
- "traefik.http.routers.rss.entrypoints=websecure"
- "traefik.http.routers.rss.tls.certresolver=letsencrypt"
- "traefik.http.services.rss.loadbalancer.server.port=8080"The container does not need ports: published when behind Traefik on the same
Docker network.
Note.
/metricsshares the same listener as the feed plane. If you expose the service publicly (e.g.LISTEN_ADDR=:8080plus a public reverse proxy), restrict/metricsat the proxy or only proxy/<name>.{xml,atom,json}and/feeds.json.
Upgrading is safe and in-place. The new version reads the same CONFIG_PATH,
and your data volume (article cache + generated feeds) is untouched:
docker compose pull && docker compose up -d
# one-line run: docker pull ghcr.io/mijndert/rss-fulltext:latest && recreateAn older single-file mount (-v .../feeds.yaml:/etc/rss-fulltext/feeds.yaml:ro)
still boots and serves exactly as before, so you don't have to change anything.
The only reason to switch is reliable live reload: Docker binds a single file
by inode, so host-side edits made by editors that save-by-replace are invisible
to the container. Mounting the containing directory fixes that:
- - ./feeds.yaml:/etc/rss-fulltext/feeds.yaml:ro
+ - ./config:/etc/rss-fulltext:roIf you switch, put your file at config/feeds.yaml before recreating the
container (mkdir -p config && mv feeds.yaml config/) — with the directory mount
the app looks there, and a missing file will stop it from starting. CONFIG_PATH
stays /etc/rss-fulltext/feeds.yaml.
Running the bare binary? Nothing to change — live reload works against your
existing CONFIG_PATH as-is.
Compose creates a named volume data mounted at /var/lib/rss-fulltext. It
holds the generated feed files and the article cache. Inspect with:
docker compose exec rss-fulltext ls /var/lib/rss-fulltext/feeds
docker volume inspect rss-fulltext_dataRemoving the volume (docker compose down -v) wipes both the cache and the
generated feeds. The feeds will be regenerated on next start.
docker-compose.yml uses ghcr.io/mijndert/rss-fulltext:latest. To pin:
image: ghcr.io/mijndert/rss-fulltext:1.2.3Tagged versions (vX.Y.Z) publish both Docker images and pre-built binaries
via GitHub Releases.
docker build -t rss-fulltext:dev .
# then edit docker-compose.yml to use rss-fulltext:devOr run the binary directly:
go build -o rss-fulltext ./
CONFIG_PATH=./config/feeds.yaml OUTPUT_DIR=./out CACHE_DIR=./cache ./rss-fulltext