feat(libreddit): init

This commit is contained in:
winston 2023-07-05 22:56:38 +02:00
parent 8358e4a912
commit 1ed98184ee
Signed by: winston
GPG key ID: 3786770EDBC2B481
2 changed files with 23 additions and 0 deletions

View file

@ -4,6 +4,7 @@
./containers.nix
./gitea.nix
./invidious.nix
./libreddit.nix
./nginx.nix
./postgres.nix
];

View file

@ -0,0 +1,22 @@
{
config,
pkgs,
...
}: {
services.libreddit = {
enable = true;
package = pkgs.unstable.libreddit;
address = "127.0.0.1";
port = 12380;
};
services.nginx.virtualHosts."lr.winston.sh" = {
forceSSL = true;
enableACME = false;
useACMEHost = "winston.sh";
locations."/" = with config.services.libreddit; {
proxyPass = "http://${address}:${toString port}";
};
};
}