Giter Club home page Giter Club logo

swfd's Introduction

Selfoss-WF on Docker

This is a docker compose for Selfoss and my Selfoss-Webfront all packaged together ready to go.

Features

  • A robust RSS solution to get content into a database
  • A responsive newsite styled webfront to read your news
  • Conveniently packaged into a single docker compose
  • It should now also work on both arm64 and amd64 platforms

Installation

  1. Clone this repository with git clone https://github.com/MatthK/swfd && cd swfd
  2. Adjust the defined database/username/password in the nano docker-compose.yml You might also have to replace the image with matthk72/selfoss-wf:latest-amd64 (just add the -amd64) in case you don't use a Raspberry Pi
  3. Type docker-compose up -d to fire up the containers. Be patient and give the database enough time to initialize and get fully up for the first time. Check the docker logs MySql to see the ready for connections. The database will restart once automatically
  4. Wait till the database has initialized. Then stop the containers again with docker-compose down
  5. Update the database/username/password in the nano swfd/Selfoss/config.ini and copy paste the whole content into the file on the docker volume sudo nano /var/lib/docker/volumes/swfd_Selfoss/_data/config.ini
  6. Start the containers again with docker-compose up -d. Again give it enough time for MySql to boot up. Check the logs again: docker logs MySql and docker logs Selfoss
  7. Go to http://ip-address:8080/ to get to the Selfoss interface and create your RSS feeds The tags defined have to match the categories in the next point. You must have 11 different tags. Multiple feeds can be defined for one tag. Either manually refresh the sources, or wait 15 minutes till the next cron job picks it up
  8. Update the database/username/password in the constants.php and based on the feeds and tags you have defined, adjust the 11 categories (Note: The file has 12 categories, Top is used for the jumbotron at the top of the index page. Do not modify this line.) nano swfd/Webfront/constants.php
  9. Go once to http://ip-address/cfn.php to create a required function in the database. After that, you can access your personal newspaper at http://ip-address/
  10. Optional, put a Reverse proxy in front # to give it a nice domain name
  11. Enjoy

Dockerfile

In case you need the image for a different platform, you can build it yourself using the Dockerfile.

Sample feeds

Below are some of the feeds I am using. Be aware that some work a bit better than others, and the more active ones (BBC, Yahoo, CNBC) tend to drown the ones with more quality stuff but that update less often. Some content gets nicely fully downloaded, some feeds don't work so well and only teasers get retrieved or the formatting is a bit off.

Many feeds have also other categories available, simply look at the URLs and see how you could possibly modify them to find an overview page, or just with trial and error.

English Feeds

Feed Category Comment
Airway Aviation
Airways Magazine Aviation
AsiaTimes World
AsiaTimes China (there are many categories, just adapt according to your interest)
AutoSport Sport
BBC News World (see https://www.bbc.co.uk/news/10628494#userss for different feeds)
BGR Technology
Channel News Asia Asia
CNBC World (International)
CNBC Business
CNBC Travel
CNBC Asia
CNBC World (Europe)
CNBC Business
CNBC Technology
Engadget Technology
FIA Sport
HKG Living HKG
IBT World they have various categories like sports/science/technology
Leeham News Aviation
Little white lies Film
Movieweb Film
NASA Science
Nature Science
Out of Town Travel
Politico World Economy, Defense
RT World
RTHK HKG
Science Daily Science
SCMP Various (most content is paid, with some free stuff. It only loads teasers here)
Seattle Times Aviation
TechRadar Technology
The Intercept World
VoxEU Business
Wired News Technology
Yahoo News World

German Feeds

Feed Category Comment
aeroTelegraph Aviation
Blick Swiss
Formula 1 Sport
SRF Sport

Credits

The docker is based on Pamplemousse/dockerfiles which created a standalone Selfoss docker. I added my instance of the webfront and packaged it with a MySQL database to get it all in one package.

swfd's People

Contributors

gardncol avatar matthk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.