Miniflux安装配置流程

  1. 安装

使用RPM Repository进行安装:

Create the file /etc/yum.repos.d/miniflux.repo:

[miniflux]

name=Miniflux Repository

baseurl=https://rpm.miniflux.app/x86_64/

enabled=1

gpgcheck=0

Then install the package:

yum install -y miniflux

二、Database Configuration

Creating the Database

Here an example from the command line:

Switch to the postgres user

$ su - postgres

Create a database user for Miniflux

$ createuser -P miniflux

Enter password for new role: ******

Enter it again: ******

Create a database for miniflux that belongs to our user

$ createdb -O miniflux miniflux

Create the extension hstore as superuser

$ psql miniflux -c ‘create extension hstore’

CREATE EXTENSION

如果提示hstore.control不存在,那就需要安装postgresql-contrib:

yum install -y postgresql13-contrib

三、部署

  1. 在.bashrc中添加DATABASE_URL=”user=miniflux password=136425
    dbname=miniflux sslmode=disable”

  2. Run the SQL migrations: miniflux -migrate

  3. Create an admin user: miniflux -create-admin

  4. 在/etc/miniflux.conf中添加DATABASE_URL=”user=miniflux
    password=136425 dbname=miniflux sslmode=disable”

  5. Enable the systemd service: systemctl enable miniflux

  6. Start the process with systemd: systemctl start miniflux

  7. Check the process status: systemctl status miniflux

四、nginx反向代理

server {

server_name my.domain.tld;

listen 80;

location / {

proxy_pass http://127.0.0.1:8080;

proxy_redirect off;

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

}

}

注意:location后面没有等号,用于默认匹配

五、反向代理到子文件夹下面

Since version 2.0.2, you can host your Miniflux instance under a
subfolder.

You must define the environment variable BASE_URL for Miniflux, for
example:

export BASE_URL=http://example.org/rss/
(如果是systemctl的话,就要写到miniflux.conf里面)

Nginx Example

server {

server_name my.domain.tld;

listen 80;

location /rss/ {

proxy_pass http://127.0.0.1:8080/rss/;

proxy_redirect off;

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

}

}

This example assumes that you are running the Miniflux daemon
on 127.0.0.1:8080.

Now you can access your Miniflux instance at http://example.org/rss/. In
this configuration, cookies are using the path /rss.

Apache 2.4 Example

This configuration assumes the same base-url as the nginx-example.

ProxyRequests Off

<Proxy *>

Order allow,deny

Allow from all

<Location “/rss/“>

ProxyPreserveHost On

ProxyPass http://127.0.0.1:8080/rss/

ProxyPassReverse http://127.0.0.1:8080/rss/

Place this snippet inside your vhosts config, needed
modules: mod_proxy and mod_proxy_http.

六、开启https解析

只需要把BASE_URL改成https就行了,证书用的之前v2ray生成的

七、使用Fever将订阅源添加到APP上面

打开Fever的开关,自己设置用户名密码

Fever

Android端可以使用FeedMe,iOS的都要收费,目前没有很好的APP。

将给定的网址,账号和密码填到APP中即可


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!