From 5396c0783e3967ccf73341c47e36a02b22e04433 Mon Sep 17 00:00:00 2001 From: Ayaka Date: Fri, 21 Jun 2024 23:11:23 +1200 Subject: [PATCH 1/5] add mascots to user settings readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d7e471f..468c57f 100644 --- a/README.md +++ b/README.md @@ -367,6 +367,7 @@ Assign a default value for each user-modifiable setting by passing environment v | Name | Possible values | Default value | | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------- | | `THEME` | `["system", "light", "dark", "black", "dracula", "nord", "laserwave", "violet", "gold", "rosebox", "gruvboxdark", "gruvboxlight", "tokyoNight", "icebergDark"]` | `system` | +| `MASCOT` | `["BoymoderBlahaj", "redsunlib" ... Add more at ./static/mascots] ` | _(none)_ | | `FRONT_PAGE` | `["default", "popular", "all"]` | `default` | | `LAYOUT` | `["card", "clean", "compact"]` | `card` | | `WIDE` | `["on", "off"]` | `off` | -- 2.45.2 From 138934f30ce3ac0cb49fb5b1e1e434dc3b8c3d0b Mon Sep 17 00:00:00 2001 From: Ayaka Date: Fri, 21 Jun 2024 23:49:37 +1200 Subject: [PATCH 2/5] change resource links and container links --- README.md | 82 ++++++++----------------------------------------------- 1 file changed, 11 insertions(+), 71 deletions(-) diff --git a/README.md b/README.md index 468c57f..78662ac 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,6 @@ - [Binary](#binary) - [Running as a systemd service](#running-as-a-systemd-service) - [Building from source](#building-from-source) - - [Replit/Heroku/Glitch](#replit-heroku-glitch) - - [launchd (macOS)](#launchd-macos) 6. [Configuration](#configuration) - [Instance settings](#instance-settings) - [Default user settings](#default-user-settings) @@ -39,8 +37,8 @@ # Instances -> [!TIP] -> 🔗 **Want to automatically redirect Reddit links to Redlib? Use [LibRedirect](https://github.com/libredirect/libredirect) or [Privacy Redirect](https://github.com/SimonBrazell/privacy-redirect)!** +> [!WARNING] +> 🔗 **Currently public Redsunlib instance are not available, consider using a [redlib](https://github.com/redlib-org/redlib-instances/blob/main/instances.md) instance if you are not comfortable running your own** An up-to-date table of instances is available in [Markdown](https://github.com/redlib-org/redlib-instances/blob/main/instances.md) and [machine-readable JSON](https://github.com/redlib-org/redlib-instances/blob/main/instances.json). @@ -158,7 +156,7 @@ For configuration options, see the [Configuration section](#Configuration). [Docker](https://www.docker.com) lets you run containerized applications. Containers are loosely isolated environments that are lightweight and contain everything needed to run the application, so there's no need to rely on what's installed on the host. -Docker images for Redlib are available at [quay.io](https://quay.io/repository/redlib/redlib), with support for `amd64`, `arm64`, and `armv7` platforms. +Docker images for Redsunlib are available at our [Gitea container registry](https://git.stardust.wtf/iridium/-/packages/container/redsunlib/latest), currently only with support for `amd64`, if you need `arm64`, or `armv7` platforms you can either build Redsunlib yourself or open an [issue](https://git.stardust.wtf/iridium/redsunlib/issues) :) ### Docker Compose @@ -184,15 +182,15 @@ docker logs -f redlib Deploy Redlib: ```bash -docker pull quay.io/redlib/redlib:latest -docker run -d --name redlib -p 8080:8080 quay.io/redlib/redlib:latest +docker pull git.stardust.wtf/iridium/redsunlib:latest +docker run -d --name redlib -p 8080:8080 git.stardust.wtf/iridium/redsunlib:latest ``` Deploy using a different port on the host (in this case, port 80): ```bash -docker pull quay.io/redlib/redlib:latest -docker run -d --name redlib -p 80:8080 quay.io/redlib/redlib:latest +docker pull git.stardust.wtf/iridium/redsunlib:latest +docker run -d --name redlib -p 80:8080 git.stardust.wtf/iridium/redsunlib:latest ``` If you're using a reverse proxy in front of Redlib, prefix the port numbers with `127.0.0.1` so that Redlib only listens on the host port **locally**. For example, if the host port for Redlib is `8080`, specify `127.0.0.1:8080:8080`. @@ -205,19 +203,7 @@ docker logs -f redlib ## Binary -If you're on Linux, you can grab a binary from [the newest release](https://github.com/redlib-org/redlib/releases/latest) from GitHub. - -Download the binary using [Wget](https://www.gnu.org/software/wget/): - -```bash -wget https://github.com/redlib-org/redlib/releases/download/v0.31.0/redlib -``` - -Make the binary executable and change its ownership to `root`: - -```bash -sudo chmod +x redlib && sudo chown root:root redlib -``` +Currently binaries are not supplied at this moment but will be at some point in the future but can be [built from source](#building-from-source) Copy the binary to `/usr/bin`: @@ -261,59 +247,13 @@ Before=nginx.service ## Building from source -To deploy Redlib with changes not yet included in the latest release, you can build the application from source. +To deploy Redsunlib with changes not yet included in the latest release, you can build the application from source. ```bash -git clone https://github.com/redlib-org/redlib && cd redlib +git clone https://git.stardust.wtf/iridium/redsunlib && cd redsunlib cargo run ``` -## Replit/Heroku - -> [!WARNING] -> These are free hosting options, but they are _not_ private and will monitor server usage to prevent abuse. If you need a free and easy setup, this method may work best for you. - -Run on Repl.it -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/redlib-org/redlib) - -## launchd (macOS) - -If you are on macOS, you can use the [launchd](https://en.wikipedia.org/wiki/Launchd) service available in `contrib/redlib.plist`. - -Install it with `cp contrib/redlib.plist ~/Library/LaunchAgents/`. - -Load and start it with `launchctl load ~/Library/LaunchAgents/redlib.plist`. - - - - - --- # Configuration @@ -343,7 +283,7 @@ REDLIB_DEFAULT_USE_HLS = "on" > If using the Docker CLI, add ` --env-file .env` to the command that runs Redlib. For example: > > ```bash -> docker run -d --name redlib -p 8080:8080 --env-file .env quay.io/redlib/redlib:latest +> docker run -d --name redlib -p 8080:8080 --env-file .env git.stardust.wtf/iridium/redsunlib:latest > ``` > > If using Docker Compose, no changes are needed as the `.env` file is already referenced in `compose.yaml` via the `env_file: .env` line. -- 2.45.2 From bd0a312487f0b39135ae05a91968bae327bd5836 Mon Sep 17 00:00:00 2001 From: Ayaka Date: Thu, 27 Jun 2024 15:04:58 +1200 Subject: [PATCH 3/5] add disclaimer --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 78662ac..73e2933 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,15 @@ ![screenshot](https://git.stardust.wtf/attachments/7667e4e2-a32c-4269-9b5f-1d29cb3baf20) -## Table of Contents +### Disclaimer -1. [Redlib](#redlib) +There are rapid changes/features in this fork that can(will) change without notice. If you want to host this version, be aware that it's likely to break at some point. I still wouldn't recommend it in a production environment unless you know what you're doing. Or like living on the edge....... + +--- + +## Table of Contents +1. [Redsunlib](#redsunlib) + - [Disclaimer](#disclaimer) 2. [Instances](#instances) 3. [About](#about) - [Built with](#built-with) -- 2.45.2 From e984646ae696d321a1cfa09964352d51fb5d616a Mon Sep 17 00:00:00 2001 From: Ayaka Date: Fri, 28 Jun 2024 00:07:29 +1200 Subject: [PATCH 4/5] Update README.md add information about the name, a thank you and bits here and there --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 73e2933..6f36148 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ logo # Redsunlib -> An alternative private front-end to Reddit, a fork of [Redlib](https://github.com/redlib-org/redlib) with some function and cosmetic changes. +> An alternative private front-end to Reddit, a fork of [Redlib](https://github.com/redlib-org/redlib) with some (minor) function and cosmetic changes.
@@ -11,6 +11,8 @@ There are rapid changes/features in this fork that can(will) change without notice. If you want to host this version, be aware that it's likely to break at some point. I still wouldn't recommend it in a production environment unless you know what you're doing. Or like living on the edge....... +> I would also like to thank the maintainers and contributors of both [Redlib](https://github.com/redlib-org/redlib) and [Libreddit](https://github.com/libreddit/libreddit) for all the work they did while I just added some low quality tacky features. ❤️ + --- ## Table of Contents @@ -18,6 +20,7 @@ There are rapid changes/features in this fork that can(will) change without noti - [Disclaimer](#disclaimer) 2. [Instances](#instances) 3. [About](#about) + - [The Name](#the-name) - [Built with](#built-with) - [How is it different from other Reddit front ends?](#how-is-it-different-from-other-reddit-front-ends) - [Teddit](#teddit) @@ -46,11 +49,7 @@ There are rapid changes/features in this fork that can(will) change without noti > [!WARNING] > 🔗 **Currently public Redsunlib instance are not available, consider using a [redlib](https://github.com/redlib-org/redlib-instances/blob/main/instances.md) instance if you are not comfortable running your own** -An up-to-date table of instances is available in [Markdown](https://github.com/redlib-org/redlib-instances/blob/main/instances.md) and [machine-readable JSON](https://github.com/redlib-org/redlib-instances/blob/main/instances.json). - -Both files are part of the [redlib-instances](https://github.com/redlib-org/redlib-instances) repository. To contribute your [self-hosted instance](#deployment) to the list, see the [redlib-instances README](https://github.com/redlib-org/redlib-instances/blob/main/README.md). - -For information on instance uptime, see the [Uptime Robot status page](https://stats.uptimerobot.com/mpmqAs1G2Q). +You are more than welcome to host an instance and submit an issue if you want it added. That is, if you've read the [Disclaimer](#disclaimer) and it's within your "personal risk tolerance." ;) --- @@ -60,6 +59,13 @@ Redlib hopes to provide an easier way to browse Reddit, without the ads, tracker Redlib currently implements most of Reddit's (signed-out) functionalities but still lacks [a few features](https://github.com/redlib-org/redlib/issues). +## The Name + +**Red sun** in the sky + Red**lib** = Redsunlib + +And at the time, I was reading an excerpt from Mao Zedong, so the name seemed appropriate. But paradoxically named since Reddit is basically the sinophobia capital of the internet :/ + + ## Built with - [Rust](https://www.rust-lang.org/) - Programming language -- 2.45.2 From f0eb496d6a24e1e0f06c04ae5340181d9d5a70f4 Mon Sep 17 00:00:00 2001 From: Ayaka Date: Fri, 28 Jun 2024 00:32:20 +1200 Subject: [PATCH 5/5] fix README.md --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6f36148..c5f9640 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ logo # Redsunlib -> An alternative private front-end to Reddit, a fork of [Redlib](https://github.com/redlib-org/redlib) with some (minor) function and cosmetic changes. +> An alternative private front-end to Reddit, a fork of [Redlib](https://github.com/redlib-org/redlib) with some (minor) function and cosmetic changes.
@@ -9,7 +9,7 @@ ### Disclaimer -There are rapid changes/features in this fork that can(will) change without notice. If you want to host this version, be aware that it's likely to break at some point. I still wouldn't recommend it in a production environment unless you know what you're doing. Or like living on the edge....... +There are rapid changes/features in this fork that can(will) change without notice. If you want to host this version, be aware that it's likely to break at some point. I still wouldn't recommend it in a production environment unless you know what you're doing. Or like living on the edge....... > I would also like to thank the maintainers and contributors of both [Redlib](https://github.com/redlib-org/redlib) and [Libreddit](https://github.com/libreddit/libreddit) for all the work they did while I just added some low quality tacky features. ❤️ @@ -18,27 +18,28 @@ There are rapid changes/features in this fork that can(will) change without noti ## Table of Contents 1. [Redsunlib](#redsunlib) - [Disclaimer](#disclaimer) -2. [Instances](#instances) -3. [About](#about) +2. [Table of Contents](#table-of-contents) +3. [Instances](#instances) +4. [About](#about) - [The Name](#the-name) - [Built with](#built-with) - [How is it different from other Reddit front ends?](#how-is-it-different-from-other-reddit-front-ends) - [Teddit](#teddit) - [Libreddit](#libreddit) -4. [Comparison](#comparison) +5. [Comparison](#comparison) - [Speed](#speed) - [Privacy](#privacy) - [Reddit](#reddit) - [Redlib](#redlib-1) - [Server](#server) -5. [Deployment](#deployment) +6. [Deployment](#deployment) - [Docker](#docker) - [Docker Compose](#docker-compose) - [Docker CLI](#docker-cli) - [Binary](#binary) - [Running as a systemd service](#running-as-a-systemd-service) - [Building from source](#building-from-source) -6. [Configuration](#configuration) +7. [Configuration](#configuration) - [Instance settings](#instance-settings) - [Default user settings](#default-user-settings) @@ -328,6 +329,7 @@ Assign a default value for each user-modifiable setting by passing environment v | `SHOW_NSFW` | `["on", "off"]` | `off` | | `BLUR_NSFW` | `["on", "off"]` | `off` | | `USE_HLS` | `["on", "off"]` | `off` | +| `FFMPEG_VIDEO_DOWNLOADS` | `["on", "off"]` | `off` | | `HIDE_HLS_NOTIFICATION` | `["on", "off"]` | `off` | | `AUTOPLAY_VIDEOS` | `["on", "off"]` | `off` | | `SUBSCRIPTIONS` | `+`-delimited list of subreddits (`sub1+sub2+sub3+...`) | _(none)_ | -- 2.45.2