infra/config/services/libreddit.nix

23 lines
417 B
Nix
Raw Normal View History

2023-07-05 22:56:38 +02:00
{
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}";
};
};
}