From dc212c3c203f2fb9835ce2648888f8caf35e99dc Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 12 May 2022 18:03:16 +0900 Subject: Host Element at than.loang.net --- ipfs.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipfs.nix') diff --git a/ipfs.nix b/ipfs.nix index a2bf6a3..ace7764 100644 --- a/ipfs.nix +++ b/ipfs.nix @@ -1,6 +1,11 @@ { config, pkgs, ... }: let domain = config.networking.domain; in { + networking.firewall = { + allowedTCPPorts = [ 4001 ]; + allowedUDPPorts = [ 4001 ]; + }; + security.acme.certs.${domain} = { credentialsFile = pkgs.writeText "namesilo.env" '' NAMESILO_API_KEY_FILE=/var/lib/acme/namesilo.key -- cgit 1.4.1