upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-03-25 07:19:26 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-03-25 07:19:26 +0000
commit28168a7701c897a5b6af13bc472d6f5902e0a96d (patch)
treebbb2ad5e238f118a31d4d1b974c0b391c74a12c1 /nix
parent05b7edb5f5797100d8e0f59905e16488680928ec (diff)
chore: remove arbitrary default max connections limit
When NGIT_MAX_CONNECTIONS is unset the relay imposes no connection cap, deferring to OS fd limits and infrastructure controls. The option remains available for operators who want an explicit ceiling.
Diffstat (limited to 'nix')
-rw-r--r--nix/module.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/nix/module.nix b/nix/module.nix
index 7354ab6..9693358 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -268,9 +268,10 @@ let
268 }; 268 };
269 269
270 maxConnections = mkOption { 270 maxConnections = mkOption {
271 type = types.int; 271 type = types.nullOr types.int;
272 default = 4096; 272 default = null;
273 description = "Maximum total connections to the relay"; 273 description =
274 "Maximum total connections to the relay (default: unlimited, defers to OS/infrastructure limits)";
274 }; 275 };
275 276
276 user = mkOption { 277 user = mkOption {
@@ -337,8 +338,9 @@ let
337 NGIT_REPOSITORY_WHITELIST = concatStringsSep "," cfg.repositoryWhitelist; 338 NGIT_REPOSITORY_WHITELIST = concatStringsSep "," cfg.repositoryWhitelist;
338 NGIT_REPOSITORY_BLACKLIST = concatStringsSep "," cfg.repositoryBlacklist; 339 NGIT_REPOSITORY_BLACKLIST = concatStringsSep "," cfg.repositoryBlacklist;
339 NGIT_EVENT_BLACKLIST = concatStringsSep "," cfg.eventBlacklist; 340 NGIT_EVENT_BLACKLIST = concatStringsSep "," cfg.eventBlacklist;
340 NGIT_MAX_CONNECTIONS = toString cfg.maxConnections;
341 NGIT_LOG_LEVEL = cfg.logLevel; 341 NGIT_LOG_LEVEL = cfg.logLevel;
342 } // optionalAttrs (cfg.maxConnections != null) {
343 NGIT_MAX_CONNECTIONS = toString cfg.maxConnections;
342 } // optionalAttrs (cfg.relayName != null) { 344 } // optionalAttrs (cfg.relayName != null) {
343 NGIT_RELAY_NAME = cfg.relayName; 345 NGIT_RELAY_NAME = cfg.relayName;
344 } // optionalAttrs (cfg.archiveReadOnly != null) { 346 } // optionalAttrs (cfg.archiveReadOnly != null) {