Self-host FreshRSS

A self-hosted RSS feed aggregator, written in PHP, that fetches feeds on the server and serves a web reader and mobile-client APIs. Run your own FreshRSS on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.

Updated November 23, 2026

Running your own FreshRSS usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make FreshRSS behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.

Just ask your agent

Open a Plus workspace (FreshRSS runs in Docker, which Plus and Pro include), tap Launch to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:

Set up FreshRSS on this workspace and give me the link. Follow https://envhaven.com/self-host/freshrss.md

Then open the link it sends and create your FreshRSS account straight away, before anyone else finds the address. That is the whole request: the address in it is this page’s Markdown copy, and the agent follows the instructions for it further down, with every setting FreshRSS’s docs require.

Or keep it private with Tailscale

The preview URL puts FreshRSS on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives FreshRSS an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace’s Vars pane as TS_AUTHKEY, and ask the agent:

Set up FreshRSS on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/freshrss.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
  • A Tailscale container runs beside FreshRSS, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
  • Anything other services have to reach, such as a webhook, still needs a public address. Keep self-hosted apps private with Tailscale covers both, and what Tailscale’s free plan includes.
At a glance
What it isBookmarks, feeds and reading
LicenseAGPL-3.0
Runs asDocker (freshrss/freshrss)
MemoryNot documented
Plan that fitsPlus or larger
Web port80
Documentationfreshrss.github.io/FreshRSS/en/admins/03_Installation.html

What your agent takes care of

  • Installing it. FreshRSS runs from the official image, freshrss/freshrss, with its data in folders under ~/apps/freshrss.
  • Putting it on an HTTPS address. The workspace’s preview URL serves it, and your own domain can too.
  • Locking it down first. What FreshRSS’s docs say to set before it faces the internet, below.
  • Telling you what to back up: ./data/ (required; /var/www/FreshRSS/data, the freshrss_data volume in Docker; holds all personal data and the SQLite databases), ./extensions/ (recommended), ./i/themes/ (optional, custom themes) and an external PostgreSQL/MySQL/MariaDB database if used (docs).

The settings it needs behind a proxy

  • BASE_URL in the compose .env (passed to the installer as --base-url) and base_url in data/config.php: Public address of the instance; changing servers means changing base_url. (docs)
  • base_url after a move: Shown in System configuration but not editable there; edit data/config.php. (docs)
  • TRUSTED_PROXY (env) or trusted_sources (data/config.php): Space-separated proxy IPs or CIDR ranges allowed to send X-Forwarded-For; it controls the logged client IP and external authentication methods. (docs)
  • TRUSTED_PROXY risk: Anything listed is believed completely; a leaky proxy lets an attacker become admin. (docs)
  • HTTPS through a reverse proxy: Production advice from the Docker guide. (docs)
  • X-Forwarded-Prefix header (subfolder setups): Caddy example sets it so login cookies use the right path. (docs)
  • Setup connection IP: The IP used during setup is added to trusted_sources automatically; run setup directly or through a proxy you trust. (docs)

Before it faces the internet

  • Expose only the ./p/ folder to the web on a native install. (docs)
  • Do not run with authentication disabled. (docs)
  • Registration is closed by default: max_registrations is 1, which config.default.php says means no user registrations (1 is the admin account); 0 would allow unlimited sign-ups. Form authentication is the default. (docs)
  • The browser installer is open until finished; complete it yourself before exposing the site. (docs)
  • SSRF: avoid exposing a multi-user instance to people you do not trust. (docs)
  • The sample .env uses placeholder passwords that must be replaced. (docs)

Things to ask next

Everything after the install is one more sentence to the agent. Some that come up:

  • “Import the bookmarks file I dropped into the workspace.”
  • “Add these ten feeds and sort them into folders by topic.”
  • “Move FreshRSS to app.example.com.” Add the domain on the dashboard’s Domains page with a CNAME to domains.envhaven.app, and the agent changes FreshRSS’s address settings to match.
  • “Update FreshRSS to the latest release.” It pulls the new image and recreates the container, data kept.

Instructions for the agent

The agent reads these from the page’s Markdown copy. They also work pasted on their own, if you would rather give them in your own words.

Set up FreshRSS on this workspace and serve it at my preview URL.
- Use Docker Compose with the official image, freshrss/freshrss, starting from the docs' compose file: https://github.com/FreshRSS/FreshRSS/blob/1.30.4/Docker/freshrss/docker-compose.yml. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- Keep the compose file in ~/apps/freshrss and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to FreshRSS's port 80.
- The preview URL terminates HTTPS in front of FreshRSS: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/freshrss.md for the preview URL, as FreshRSS's docs describe for running behind a proxy; skip any that apply only when FreshRSS serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/freshrss.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set FreshRSS up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.

What to know

  • In Docker, FreshRSS’s containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
  • Feeds refresh only when a cron job runs; in Docker the built-in cron is off until CRON_MIN is set. (docs)
  • Feeds are fetched by the server, so it needs outbound HTTP access; requests to internal hosts (127.0.0.1, 10.x, 172.16-31.x and so on) are blocked by default, so a local RSS-Bridge needs the allowlist. (docs)
  • Email is not configured by default and is only used for optional address validation, so sign-in needs no mail server. (docs)
  • The only upload documented in the admin config is a custom favicon, capped at 1 MiB. (docs)
  • OpenID Connect is only available in the Debian image. (docs)
  • Apache needs AllowEncodedSlashes for mobile clients. (docs)
  • A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.

Without a workspace

The manual route, on a server you run:

  1. Rent a Linux VPS, secure SSH, and create a user for the app.
  2. Install Docker and write a compose file from the official image.
  3. Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
  4. Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
  5. Keep the firewall closed except for the proxy, and schedule backups and updates.

FreshRSS’s own documentation covers each step for its install methods.

Sources

Facts about FreshRSS come from its own documentation, checked on 2026-11-23: