Infini-SERVER: remove unnecessary nginx config
This commit is contained in:
parent
d784d4eee4
commit
1215310ba2
1 changed files with 0 additions and 33 deletions
|
@ -60,37 +60,4 @@
|
||||||
"/root/.ssh/immutable_files.txt"
|
"/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 ];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue