Host Miniflux on Fly.io (for free)
Miniflux is a great minimal rss reader. gmcabrita wrote a guide on how to self-host it on fly.io, and here's a speedrun version of it:
- Login to fly if you haven't already:
fly auth login
- Make a directory for your config file:
mkdir miniflux-on-fly
- Create empty app on Fly.io:
fly launch
- Choose name for your app, this will be used as your
*.fly.dev
domain (unless you use custom domain) - Choose region closest to you
- Choose name for your app, this will be used as your
- Create database for your Miniflux instance:
fly postgres create
- Choose database name, doesn't really matter
- Select same region as you chose for the app earlier
- Configuration: development
- Scale single node pg to zero after 1 hour: No
- Attach postgres to app:
fly postgres attach [POSTGRES APP] -a [MINIFLUX APP]
- Add Miniflux username:
fly secrets set ADMIN_USERNAME=username
- Add Miniflux password:
fly secrets set ADMIN_PASSWORD=password
- Add these to the autogenerated
fly.toml
(generated at step 3)
[build]
image = "docker.io/miniflux/miniflux:latest"
[env]
RUN_MIGRATIONS = "true"
CLEANUP_ARCHIVE_READ_DAYS = "30"
CLEANUP_ARCHIVE_UNREAD_DAYS = "90"
HTTPS = "true"
PORT = "8080"
# Only needed on the first deploy, but you can leave it on
CREATE_ADMIN = "true"
# Should be set to whatever your domain is, custom or not
BASE_URL = "https://APP-NAME.fly.dev"
- In same file, under
[http_service]
setauto_stop_machines
to false - Deploy your app:
fly deploy
That's it, you should now be able to log in with the username and password you specified. If you want to set up custom domain, check this speedrun guide
✌🏼 Like my content? Subscribe via RSS feed.