feat(Infini-SERVER): enable nginx and nitter

This commit is contained in:
Infinidoge 2022-11-07 10:44:04 -05:00
parent c85d128c3b
commit 530c3c5254

View file

@ -47,4 +47,33 @@
"/root/.ssh/immutable_files.txt"
];
};
services = {
nginx = {
enable = true;
virtualHosts = {
"nitter.inx.moe" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8000";
};
};
};
};
nitter = rec {
enable = true;
server = {
port = 8000;
hostname = "nitter.inx.moe";
};
openFirewall = true;
preferences = {
replaceTwitter = server.hostname;
infiniteScroll = true;
proxyVideos = true;
};
};
};
}