From f97d7ac829e53fadad8c08fa0531af50b4d419af Mon Sep 17 00:00:00 2001 From: rope Date: Sat, 29 Aug 2026 13:44:59 +0100 Subject: [PATCH] redlib: reddit front-end at reddit.nordhammer.it Co-Authored-By: Claude Opus 5 --- common.nix | 1 + services/nginx.nix | 1 + services/redlib.nix | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 100644 services/redlib.nix diff --git a/common.nix b/common.nix index 02d0779..3091343 100644 --- a/common.nix +++ b/common.nix @@ -122,6 +122,7 @@ in ./services/forgejo-runner.nix ./services/code-server.nix ./services/memos.nix + ./services/redlib.nix ./services/hardware-health.nix ./services/wan-watchdog.nix ./services/prebuild.nix diff --git a/services/nginx.nix b/services/nginx.nix index 61bc4b9..3c71eca 100644 --- a/services/nginx.nix +++ b/services/nginx.nix @@ -161,6 +161,7 @@ in ''; }; "notes.nordhammer.it" = protectedProxy 5230; + "reddit.nordhammer.it" = protectedProxy 8087; # Pelican game panel. Can't turn off its own login (no such option # upstream), so Authelia is the outer gate and the Pelican account diff --git a/services/redlib.nix b/services/redlib.nix new file mode 100644 index 0000000..f4132c2 --- /dev/null +++ b/services/redlib.nix @@ -0,0 +1,11 @@ +# services/redlib.nix — Private Reddit front-end at reddit.nordhammer.it +{ config, lib, ... }: +{ + config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") { + services.redlib = { + enable = true; + address = "127.0.0.1"; + port = 8087; + }; + }; +}