enabled firewall
This commit is contained in:
parent
7a3d5bfb2a
commit
e1f2540718
1 changed files with 10 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
flake,
|
flake,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
# config,
|
# config,
|
||||||
|
|
@ -23,13 +24,21 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
DATA_DIR = "/var/lib/uptime-kuma/";
|
DATA_DIR = "/var/lib/uptime-kuma/";
|
||||||
UPTIME_KUMA_HOST = "127.0.0.1";
|
UPTIME_KUMA_HOST = "0.0.0.0";
|
||||||
PORT = "3001";
|
PORT = "3001";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "observer-tofu";
|
hostName = "observer-tofu";
|
||||||
|
firewall = {
|
||||||
|
# enable = lib.mkForce false;
|
||||||
|
interfaces = {
|
||||||
|
"eth0@if77" = {
|
||||||
|
allowedTCPPorts = [ 3001 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue