feat(libreddit): init
This commit is contained in:
parent
8358e4a912
commit
1ed98184ee
2 changed files with 23 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
./containers.nix
|
||||
./gitea.nix
|
||||
./invidious.nix
|
||||
./libreddit.nix
|
||||
./nginx.nix
|
||||
./postgres.nix
|
||||
];
|
||||
|
|
22
config/services/libreddit.nix
Normal file
22
config/services/libreddit.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue