diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-05-12 18:03:16 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-05-12 18:03:16 +0900 |
commit | dc212c3c203f2fb9835ce2648888f8caf35e99dc (patch) | |
tree | 7bd8d0a7aecad613a56f29176a6d6f947316de43 /ipfs.nix | |
parent | 1c2a3ebe9da70a85589c3adcf5087281a95ac7b4 (diff) | |
download | nixos-conf-dc212c3c203f2fb9835ce2648888f8caf35e99dc.tar.gz |
Host Element at than.loang.net
Diffstat (limited to 'ipfs.nix')
-rw-r--r-- | ipfs.nix | 5 |
1 files changed, 5 insertions, 0 deletions
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 |