1
0
Fork 0

docs: listen on localhost only

This commit is contained in:
Daniel Kempkens 2022-12-26 18:17:59 +01:00
parent 5547896f51
commit 745618bd76
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -1,8 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
environment.systemPackages = [ pkgs.website-docs-nifoc-pw ];
services.nginx = { services.nginx = {
enable = true; enable = true;
@ -11,7 +9,15 @@
(domain: { (domain: {
name = domain; name = domain;
value = { value = {
listen = [
{
addr = "127.0.0.1";
port = 80;
}
];
root = "${pkgs.website-docs-nifoc-pw}/site/${domain}"; root = "${pkgs.website-docs-nifoc-pw}/site/${domain}";
extraConfig = '' extraConfig = ''
autoindex on; autoindex on;
autoindex_format html; autoindex_format html;
@ -19,6 +25,4 @@
}; };
}) [ "katja.nifoc.pw" "katja_vmstats.nifoc.pw" "noesis.nifoc.pw" "propagator.nifoc.pw" ]); }) [ "katja.nifoc.pw" "katja_vmstats.nifoc.pw" "noesis.nifoc.pw" "propagator.nifoc.pw" ]);
}; };
networking.firewall.allowedTCPPorts = [ 80 ];
} }