Redlib - Reddit

Redlib - Reddit

Like a lot of places Reddit is getting more & more cookie & advert laden. I consume a lot of the news/updates via a single route - an RSS reader. You can create an RSS feed from a subreddit, by adding .rss to the end of the URL, but you still have to wade into the main web page if you want the comments & don't want to use their app.
This is where redlib comes in. It reads the publically available information from reddit, & unless you want to add a reply it's perfect for browsing information & updates.

Installation

To be honest, apart from changing the port I just used the docker compose that is provided.

services:
  redlib:
    image: quay.io/redlib/redlib:latest
    restart: always
    container_name: "redlib"
    ports:
      - 8080:8080 # Specify `127.0.0.1:8080:8080` instead if using a reverse proxy
    user: nobody
    read_only: true
    security_opt:
      - no-new-privileges:true
      # - seccomp=seccomp-redlib.json
    cap_drop:
      - ALL
    env_file: .env
    networks:
      - redlib
    healthcheck:
      test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
      interval: 5m
      timeout: 3s

networks:
  redlib:

The line for the ports on my system is

- 192.168.1.2:8087:8080 # Specify `127.0.0.1:8080:8080` instead if using a reverse proxy

Running from docker on a machine with that LAN IP address I don't want to use the 127.0.0.1 loopback address which could end up inside of the docker container.

I only intend on using redlib from inside my network, so I've not bothered with giving it a friendly URL (although that's also much less of a hurdle if you use a homepage that you can launch it from by clicking an icon)

RSS

The next bit is not rocket science - right click the "RSS feed" button & copy the RSS link (it works like reddit's does). Add that direct to your RSS reader for the same experience as reddit - but with the links to the comments etc pointing at redlib & not Reddit).
We can do more than that though...

Next up is a possible way to grab the RSS link & add the comments direct to the post that you can see in your RSS reader. I learned a few things along the way about how to get things done in Huginn, so while it's not the prettiest implementation it does work quite nicely.