flake/hosts/tyo0/services/redlib.nix

19 lines
379 B
Nix
Raw Normal View History

2024-08-31 02:15:09 +00:00
{ lib, ... }:
2024-08-27 09:08:53 +00:00
{
services.redlib = {
enable = true;
address = "127.0.0.1";
port = 9400;
};
2024-08-31 02:15:09 +00:00
services.caddy.settings.apps.http.servers.srv0.routes = lib.singleton {
match = lib.singleton {
host = [ "reddit.ny4.dev" ];
};
handle = lib.singleton {
handler = "reverse_proxy";
upstreams = [ { dial = "localhost:9400"; } ];
};
};
2024-08-27 09:08:53 +00:00
}