From d7ab36f43dd4906dfb805e23c921cad47de7697e Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Fri, 15 Nov 2024 22:50:58 +0100 Subject: [PATCH] open http/https ports --- configuration.nix | 3 +-- networking.nix | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 networking.nix diff --git a/configuration.nix b/configuration.nix index bfb8626..4dfba91 100644 --- a/configuration.nix +++ b/configuration.nix @@ -4,6 +4,7 @@ imports = [ ./gandicloud.nix + ./networking.nix ./forgejo.nix ]; @@ -13,6 +14,4 @@ git tig wget ]; - -# networking.firewall.enable = false; } diff --git a/networking.nix b/networking.nix new file mode 100644 index 0000000..d672c76 --- /dev/null +++ b/networking.nix @@ -0,0 +1,7 @@ +{ lib, pkgs, config, ... }: +{ + networking = { +# firewall.enable = false; + firewall.interfaces.allowedTCPPorts = [ 80 443 ]; + }; +}