25 lines
441 B
Nix
25 lines
441 B
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
services.nitter = {
|
||
|
enable = true;
|
||
|
package = pkgs.unstable.nitter;
|
||
|
server = {
|
||
|
address = "127.0.0.1";
|
||
|
port = 12419;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.nginx.virtualHosts."nr.winston.sh" = {
|
||
|
forceSSL = true;
|
||
|
enableACME = false;
|
||
|
useACMEHost = "winston.sh";
|
||
|
|
||
|
locations."/" = with config.services.nitter.server; {
|
||
|
proxyPass = "http://${address}:${toString port}";
|
||
|
};
|
||
|
};
|
||
|
}
|