From b04f9c16f83114dadea7c095c894271f358f1ab1 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Sat, 29 Jul 2023 22:59:36 +0200 Subject: [PATCH] Open ports for domains --- nixos-configurations/server/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index 4bb4909..ee2ec1d 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -6,7 +6,13 @@ ../shared.nix ]; - networking.hostName = "server"; + networking = { + hostname = "server"; + firewall = { + allowedTCPPorts = [ 80 443 25565 ]; + allowedUDPPorts = [ 80 443 25565 ]; + }; + }; services = { minecraft-server = {