aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/ganymede/config.nix1
-rw-r--r--modules/services/nixos/copyparty.nix2
2 files changed, 3 insertions, 0 deletions
diff --git a/hosts/ganymede/config.nix b/hosts/ganymede/config.nix
index 70cbfb2..b67d057 100644
--- a/hosts/ganymede/config.nix
+++ b/hosts/ganymede/config.nix
@@ -103,6 +103,7 @@
};
copyparty = {
enable = true;
+ listenAddr = "0.0.0.0";
publicUrl = "up.williamsfam.us.com";
privateUrl = "files.ganymede";
diff --git a/modules/services/nixos/copyparty.nix b/modules/services/nixos/copyparty.nix
index 23363a7..df7018e 100644
--- a/modules/services/nixos/copyparty.nix
+++ b/modules/services/nixos/copyparty.nix
@@ -14,6 +14,8 @@ in {
config = lib.mkIf cfg.enable {
users.groups."fileserver".members = [config.collinux.user.name];
+ networking.firewall.allowedTCPPorts = lib.optional (cfg.listenAddr == "0.0.0.0") cfg.port;
+
services.copyparty = {
enable = true;