Infini-SERVER: remove unnecessary nginx config

This commit is contained in:
Infinidoge 2024-04-26 02:46:10 -04:00
parent d784d4eee4
commit 1215310ba2
Signed by: Infinidoge
SSH key fingerprint: SHA256:VEv3zmkBzcYYle6/37h+BbOyNDbGy/o8SHh7fcs9RbQ

View file

@ -60,37 +60,4 @@
"/root/.ssh/immutable_files.txt"
];
};
services = {
nginx =
let
cfg = config.services.nginx;
inherit (config.common.nginx) ssl;
in
{
enable = true;
virtualHosts = {
"*.inx.moe" = ssl // {
listen = lib.flatten
(map
(addr: [
{ inherit addr; port = 443; ssl = true; }
{ inherit addr; port = 80; ssl = false; }
])
cfg.defaultListenAddresses);
globalRedirect = "inx.moe";
};
"nitter.inx.moe" = ssl // {
globalRedirect = "twitter.com";
};
};
};
};
networking.firewall = {
allowedUDPPorts = [ 80 443 ];
allowedTCPPorts = [ 80 443 ];
};
}