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

36 lines
657 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;
2023-02-20 19:24:34 +00:00
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedBrotliSettings = true;
2023-02-13 19:15:10 +00:00
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
}