Sign inSign up

mv12star/redlib-html-proxy

By mv12star

•Updated 17 days ago

Image
0

122

mv12star/redlib-html-proxy repository overview

⁠redlib-html-proxy

Scrapes Reddit HTML and serves it as Redlib-compatible JSON.

[ ! ] Note: This is only an HTML proxy, not a Redlib⁠ container.

⁠Docker compose

services:
  redlib-html-proxy:
    image: mv12star/redlib-html-proxy:latest
    container_name: redlib-html-proxy
    environment:
      PORT: 8021 # optional; default 3002
      DEBUG_MODE: false
    #ports:
      # - 127.0.0.1:8021:8021
    #network_mode: "container:gluetun" # for redlib public instances
    volumes:
      - ./cookies/cookies.txt:/cookies/cookies.txt:ro
    read_only: true
    security_opt:
      - no-new-privileges:true
    cap_drop:
      - ALL
⁠Cookies

Allows for cookie rotation via cookies.txt:

# comments and blank lines are ignored
reddit_session=aaa; token_v2=bbb; loid=ccc
reddit_session=ddd; token_v2=eee; loid=fff

Behaviour:

  • Requests use the active entry until it is rejected.
  • Any 4xx or 5xx response marks the active entry as rejected and rotates to the next entry in the list.
  • If every entry is rejected, the request fails with the last status Reddit returned.
  • A missing or empty cookie file skips sending a cookie header.

Tag summary

Content type

Image

Digest

sha256:ea213b1f6…

Size

9.1 MB

Last updated

17 days ago

docker pull mv12star/redlib-html-proxy