1
0
Fork 0
dotfiles/system/nixos/libreddit.nix

32 lines
546 B
Nix
Raw Normal View History

2023-02-13 19:15:10 +00:00
{ config, ... }:
2023-02-12 21:13:30 +00:00
{
services.libreddit = {
enable = true;
address = "127.0.0.1";
port = 8002;
};
2023-02-13 19:15:10 +00:00
services.nginx = {
enable = true;
virtualHosts."libreddit.only.internal" = {
listen = [
{
addr = "127.0.0.1";
port = 80;
}
];
forceSSL = false;
enableACME = false;
basicAuthFile = config.age.secrets.libreddit-auth.path;
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8002";
};
};
};
2023-02-12 21:13:30 +00:00
}