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; + }; + }; +}