24 lines
399 B
Nix
24 lines
399 B
Nix
|
{ pkgs, config, ... }: {
|
||
|
|
||
|
|
||
|
services.libreddit = {
|
||
|
enable = true;
|
||
|
address = "127.0.0.1";
|
||
|
port = 3672;
|
||
|
};
|
||
|
|
||
|
services.nginx = {
|
||
|
virtualHosts = {
|
||
|
# Privacy services
|
||
|
"libreddit.${config.networking.domain}" = {
|
||
|
forceSSL = true;
|
||
|
enableACME = true;
|
||
|
|
||
|
locations."/" = {
|
||
|
proxyPass = " http://127.0.0.1:3672";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|