Rat's

An open source, simple and lightweight RSS reader: selfoss installation tutorial
Note: About RSS subscribers, many have been published before, such as Feedbin, FreshRSS, and so on. They are very powerful. Here's another lightweight
Scan the QR code on the right to read the full text
05
2019/06

An open source, simple and lightweight RSS reader: selfoss installation tutorial

explain: about RSS Subscribers have been published many times before, such as Feedbin FreshRSS Wait, the functions are very powerful. Here's another lightweight RSS subscriber selfoss , it is very simple to use, the interface looks good, and supports many kinds of subscriptions and websites, such as Twitter Github Tumblr Etc.

screenshot

 Please enter a picture description
 Please enter a picture description
 Please enter a picture description

install

Github address: https://github.com/SSilence/selfoss

Environmental requirements: PHP 5.4+ MySQL 5.5+ PostgreSQL or Sqlite Apache Nginx or Lighttpd

Here's a rough idea three Three installation methods, pagoda installation, manual installation and Docker Install and use the database Sqlite , direct use is recommended Docker Install.

1. Install the pagoda

 #CentOS system wget -O install.sh  http://download.bt.cn/install/install_6.0.sh  && sh install.sh #Ubuntu system wget -O install.sh  http://download.bt.cn/install/install-ubuntu_6.0.sh  && sudo bash install.sh #Debian system wget -O install.sh  http://download.bt.cn/install/install-ubuntu_6.0.sh  && bash install.sh

After installation, enter the panel, click Software Management on the left, and then install PHP 5.6+ Nginx or Apache

2. Setup
Click the website on the left, add the domain name, and then click SSH Client run command:

 #Enter the root directory of the website and change the path to your own before running cd /www/wwwroot/www.moerats.com #Download selfoss wget  https://github.com/SSilence/selfoss/releases/download/2.18/selfoss-2.18.zip #Unzip and rename the configuration file unzip selfoss-2.18.zip && rm -rf selfoss-2.18.zip cp defaults.ini config.ini #Give folder permission chown -R www:www ./ chmod 775 data/cache data/favicons data/logs data/thumbnails data/sqlite public/

Nginx You also need to click Site Settings to set pseudo static. The code is as follows:

 location ~ ^/favicons/.*$ { try_files $uri /data/$uri; }     location ~ ^/thumbnails/.*$ { try_files $uri /data/$uri; }     location ~* ^/(data\/logs|data\/sqlite|config\.ini|\.ht) { deny all; }     location / { index index.php index.html index.htm; try_files $uri /public/$uri /index.php$is_args$args; }

Then click the configuration file and delete the following lines with the code:

 location ~ .*\. (gif|jpg|jpeg|png|bmp|swf)$ { expires      30d; error_log off; access_log off; } location ~ .*\. (js|css)?$ { expires      12h; error_log off; access_log off;  }

Then you can open the site. At first, there is no login interface, that is, everyone can use it directly, and then we can edit it config.ini Configuration file to add the login interface, and modify the following parameters:

 #Site address, login user name and hash password base_url= https://www.moerats.com username=moerats password=kjl1289$swpaf4JPllpKJQp94h/LF1

Password can be accessed http://www.moerats.com/password Generate, change the domain name to your own selfoss For the site domain name and more configuration file settings, see the official instructions → Portal

3. Set RSS Refresh
Click on the left side of the pagoda - plan task, type access URL , address http://www.moerats.com/update , change the domain name to your own. It is recommended that every thirty minute.

Manual installation

This only applies to Debian8 nine System, direct recommended Debian 9

1. Installation environment

 #Debian 8 system echo "deb  http://packages.dotdeb.org  jessie all" | tee --append /etc/apt/sources.list echo "deb-src  http://packages.dotdeb.org  jessie all" | tee --append /etc/apt/sources.list wget --no-check-certificate  https://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg apt update apt install nginx cron unzip php7.0-cgi php7.0-fpm php7.0-curl php7.0-gd php7.0-mbstring php7.0-xml php7.0-sqlite sqlite -y #Debian 9 system apt update apt install nginx unzip cron php7.0-pdo php7.0-fpm php7.0-tidy php7.0-gd php7.0-mbstring php7.0-xml php7.0-sqlite sqlite -y

2. Setup

 #New Site Root mkdir -p /www/wwwroot/selfoss #Enter the root directory of the website cd /www/wwwroot/selfoss #Download selfoss wget  https://github.com/SSilence/selfoss/releases/download/2.18/selfoss-2.18.zip #Unzip and rename the configuration file unzip selfoss-2.18.zip && rm -rf selfoss-2.18.zip cp defaults.ini config.ini #Give folder permission chown -R www-data:www-data ./ chmod 775 data/cache data/favicons data/logs data/thumbnails data/sqlite public/

3. New Site Profile

 #Modify the domain name to your own, and then copy it to SSH to run cat > /etc/nginx/conf.d/selfoss.conf << "EOF" server { listen 80; server_name www.moerats.com; root /www/wwwroot/selfoss; index index.html index.php; location ~* \ (gif|jpg|png) { expires 30d; } location ~ ^/favicons/.*$ { try_files $uri /data/$uri; } location ~ ^/thumbnails/.*$ { try_files $uri /data/$uri; } location ~* ^/(data\/logs|data\/sqlite|config\.ini|\.ht) { deny all; } location / { index index.php index.html index.htm; try_files $uri /public/$uri /index.php$is_args$args; }         location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } } EOF

Reuse systemctl restart nginx Command restart Nginx take effect. If you want to give RSS For site login with user name and password, please refer to the pagoda installation method above.

4. Set RSS Refresh

 #Set it to run every 30 minutes, and change the domain name to your own echo "*/30 * * * * /usr/bin/curl -Ls ' http://www.moerats.com/update ' >/dev/null" > bt.cron crontab bt.cron rm -rf bt.cron

Use to find the last crontab -l Command to check whether the addition is successful.

Docker installation

1. Install Docker

 #CentOS 6 rpm -iUvh  http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum update -y yum -y install docker-io service docker start chkconfig docker on #CentOS 7、Debian、Ubuntu curl -sSL  https://get.docker.com/  | sh systemctl start docker systemctl enable docker

2. Pull Image

 docker run --name selfoss -d -p 8000:8888 -e CRON_PERIOD=30m -v /root/selfoss:/selfoss/data hardware/selfoss

Configuration files and data are stored in /root/selfoss catalog, rss Refresh every thirty Minutes, which can be modified by yourself.

At this time, the site access address is ip:8000 If you want to add a login user and password, visit ip:8000/password generate hash Password, edit again /root/selfoss/config.ini Document, modified as follows:

 #Login user name and hash password username=moerats password=kjl1289$swpaf4JPllpKJQp94h/LF1

Then use docker restart selfoss The command restarts and takes effect.

Finally, if you want to see all the content in the subscription article, you need other sites to support the full text RSS , not a summary, for a summary RSS , which can be converted into full text through tools RSS , available here two Converted sites.

 https://feedex.net/ https://fivefilters.org/content-only/

Finally, for other news websites, B What are you standing for? You can borrow the omnipotent RSS Build Tool RSSHUB , Introduction and Use View → Portal

Vultr New user registration send one hundred USD/ sixteen Each computer room is charged by hour, and Alipay is supported【 Click to view 】。
Last modification: June 5, 2019 10:55 PM

Comment

23 comments

  1. Jiuling Network

    Thanks for sharing, the tutorial is very good

  2. iMJMJ

    I admire you so much!

  3. distance

    Boss, after reading a lot of rss, can you recommend one that supports api better? If you want to use the API to develop third-party applications, you need to support the search function in particular. Minilux2.0 seems to be good, but the installation fails all the time? After reading the tutorial you sent, I always asked you to enter the user name and password when creating the container. I don't know what happened

    1. Rat's
      @Far away

      Minilux2.0 tutorial has been updated. Try reinstalling it

  4. east

    Is it the website he supports that he can subscribe to without the support of the source website atom/rss? Is there such a tool that subscribes to mainstream websites and converts them into atom/rss extralinks?

    1. Rat's
      @East

      It seems that there are many tools, but I forgot

  5. craig

    Blogger, can you elaborate on how to set the config.ini password? I set the user name and password in config, but I can't log in with the set user name and password. The prompt is "invalid username/password"

    1. Rat's
      @craig

      The password of the configuration file needs to be hashed. The page with the access path of/password can be directly generated and then filled in

  6. ald

    It seems that there is no way to update automatically

    1. Rat's
      @ald

      Has the scheduled task been set

  7. K

    Laziness and urge

    1. ald
      @K

      thank you! It has just been installed. It's very comfortable to read!
      However, there is no classification except Tag. There seems to be only one way to read.

      1. SphaelaClare
        @ald

        Articles with too obvious reference elements: https://www.moewah.com/archives/1897.html

      2. Rat's
        @ald

        Yes, it is mainly simple and lightweight.

    2. Rat's
      @K

      OK, OK, today is just about water.

  8. dd

    Is there any chrome plug-in that can cooperate with selfoss to realize real-time push

  9. Daddy's notes

    Thanks for sharing. In the past, Google used to use a reader when it was still available. Now, directly use feeder.co, open the browser to prompt for updates, and click Read+Comment. It is more convenient than a reader.

    1. xiaoz
      @Daddy's notes

      Is feeder.co free or free? Inoreader I'm using

      1. cloud point
        @xiaoz

        innoreader +1

    2. Rat's
      @Daddy's notes

      Feeder.co is very good. It has been used for some time before

      1. Plug method
        @Rat's

        Excellent, the theme is good, and the reply animation is also very powerful.

        1. Rat's
          @Plug method

          It's just a small special effect

  10. dz

    Thank you for sharing.