23 lines
417 B
Nix
23 lines
417 B
Nix
|
{
|
||
|
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}";
|
||
|
};
|
||
|
};
|
||
|
}
|