• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

一款简单,快速,轻便且易于安装的RSS订阅器:Miniflux 2安装教程

网络资源 Liam 1年前 (2019-04-28) 471次浏览 12个评论 扫描二维码
文章目录[隐藏]

说明:Miniflux是一个极简、快速、轻便且易于安装的Feed订阅器,支持AtomRSS 1.0/2.0JSON格式,支持OPML导入/导出等,可多人使用,很久前说过Miniflux安装教程,查看:Miniflux:自建私有RSS订阅工具,可多用户使用,不过方法仅适用于V1.x,现在升级到了V2,使用Golang编写,仅支持Postgresql数据库,官方安装教程挺坑的,这里就说下Docker安装方法。

截图

一款简单,快速,轻便且易于安装的RSS订阅器:Miniflux 2安装教程

安装

本教程不适用OpenVZ架构的VPS服务器。

1、安装环境

#Debian/Ubuntu系统 apt-get -y install git make nano curl  #CentOS/RHEL系统 yum -y install git make nano curl 

2、安装Docker和Docker Compose

#安装Docker curl -sSL https://get.docker.com/ | sh service docker start #安装Docker Compose curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose 

3、安装Miniflux 2

git clone https://github.com/miniflux/docker.git #下载二进制文件 cd docker && wget -O miniflux https://github.com/miniflux/miniflux/releases/download/2.0.5/miniflux-linux-amd64 chmod +x miniflux #开始制作镜像 make image version=2.0.5 #编辑docker-compose.yml文件 nano docker-compose.yml

写入以下代码:

version: '2' services:   miniflux:     image: miniflux/miniflux:2.0.5     ports:       - "9090:8080"     environment:       - DATABASE_URL=postgres://miniflux:[email protected]/miniflux?sslmode=disable   db:     image: postgres:10.1     environment:       - POSTGRES_USER=miniflux       - POSTGRES_PASSWORD=secret

开始运行镜像

docker-compose up -d

4、设置管理员账号密码

#找到Miniflu容器,并记住container-id。 docker ps #将container-name换成container-id后运行 docker exec -ti <container-name> /usr/local/bin/miniflux -migrate docker exec -ti <container-name> /usr/local/bin/miniflux -create-admin

输入账户和密码
一款简单,快速,轻便且易于安装的RSS订阅器:Miniflux 2安装教程
然后就可以通过IP:9090进入界面了,如果想使用域名并添加SSL证书,请继续看。

添加SSL

首先解析一个域名到服务器上。

安装Caddy

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh #备用地址 wget -N --no-check-certificate https://www.moerats.com/usr/shell/Caddy/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh 

编辑配置文件

#以下全部内容是一个整体,修改域名、IP、邮箱后一起复制到SSH运行! echo "https://xx.com {  tls [email protected]  proxy / 111.111.111.111:9090 {     header_upstream Host {host}     header_upstream X-Real-IP {remote}     header_upstream X-Forwarded-For {remote}     header_upstream X-Forwarded-Proto {scheme}   }  log /var/log/caddy.log  gzip }" > /usr/local/caddy/Caddyfile 

启动Caddy

/etc/init.d/caddy restart 

最后就可以通过域名https访问了。

本订阅器可以配合RSSHub一起使用,查看:RSSHub:一个轻量、易于扩展的RSS生成器

官方文档:https://docs.miniflux.net/


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:一款简单,快速,轻便且易于安装的RSS订阅器:Miniflux 2安装教程
喜欢 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(12)个小伙伴在吐槽
  1. Greetings! Very helpful advice within this post! It is the little changes that make the largest changes. Thanks for sharing!
    best web hosting 20202020-09-05 16:36 回复 Mac OS X | Chrome 67.0.3393.4
  2. Heya i am for the first time here. I found this board and I find It truly useful & it helped me out a lot. I hope to give something back and aid others like you helped me.
    web hosting sites2020-09-01 01:01 回复 Linux | Chrome 66.0.3359.117
  3. It's remarkable to go to see this site and reading the views of all mates on the topic of this piece of writing, while I am also eager of getting familiarity.
    black mass2020-08-28 22:02 回复 Linux | 未知浏览器
  4. I've been surfing on-line greater than three hours lately, yet I never discovered any attention-grabbing article like yours. It is pretty worth enough for me. In my opinion, if all web owners and bloggers made good content material as you probably did, the web might be much more useful than ever before.
    black mass2020-08-28 15:42 回复 Mac OS X | Chrome 66.0.3359.181
  5. Hello very cool site!! Man .. Beautiful .. Wonderful .. I'll bookmark your website and take the feeds also? I'm happy to search out numerous helpful information here in the put up, we want work out more techniques in this regard, thanks for sharing. . . . . .
    cheap flights2020-08-28 09:47 回复 Linux | Firefox浏览器 52.9
  6. Hello There. I found your blog using msn. This is a really well written article. I'll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I will definitely comeback. 3gqLYTc cheap flights
    cheap flights2020-08-25 18:21 回复 Linux | Firefox浏览器 52.9
  7. Thanks a lot for sharing this with all people you actually understand what you are speaking about! Bookmarked. Kindly also seek advice from my website =). We can have a hyperlink change contract between us cheap flights 3gqLYTc
    cheap flights2020-08-25 13:02 回复 Windows 7 | 360浏览器 SE
  8. Thanks for sharing such a fastidious opinion, article is good, thats why i have read it completely cheap flights y2yxvvfw
    cheap flights2020-08-25 11:28 回复 Mac OS X | Firefox浏览器 59.0
  9. magnificent points altogether, you simply received a new reader. What might you suggest about your submit that you made a few days in the past? Any certain? cheap flights 3gqLYTc
    cheap flights2020-08-25 01:20 回复 Windows 7 | 360浏览器 SE
  10. Magnificent beat ! I would like to apprentice at the same time as you amend your website, how could i subscribe for a blog website? The account aided me a appropriate deal. I had been tiny bit familiar of this your broadcast offered bright transparent idea
    web hosting sites2020-08-14 12:27 回复 Linux | Chrome 66.0.3359.106
  11. Hello! I just wanted to ask if you ever have any problems with hackers? My last blog (wordpress) was hacked and I ended up losing months of hard work due to no back up. Do you have any solutions to stop hackers? adreamoftrains hosting services
    adreamoftrains web hosting service2020-08-12 06:12 回复 Linux | Firefox浏览器 52.9
  12. You're so awesome! I do not believe I have read through something like this before. So nice to find someone with original thoughts on this topic. Seriously.. many thanks for starting this up. This web site is one thing that is required on the web, someone with a little originality!
    best web hosting company2020-08-11 15:54 回复 Linux | Firefox浏览器 2.0.0.2