upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/reference/configuration.md
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-16 20:55:38 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-19 15:03:59 +0000
commit16833501a1004a5a661a729e4fd2dbcbeaecd1d5 (patch)
tree96117ff6ba6c8d8d1d8daab3afe3f43a04b88e24 /docs/reference/configuration.md
parent5897e4bccd41f1a9ebb01a11280cea929c93d2c0 (diff)
config: increase max_connections default from 2000 to 4096
Increases connection limit across all configuration sources: - src/config.rs: default_value_t = 4096 - docs/reference/configuration.md: updated default and examples - nix/module.nix: maxConnections default = 4096 - .env.example: updated default and comment This allows the relay to handle more concurrent connections and reduces the likelihood of connection exhaustion under normal load. The previous limit of 2000 was too conservative for production deployments.
Diffstat (limited to 'docs/reference/configuration.md')
-rw-r--r--docs/reference/configuration.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md
index c3001d3..c1cb712 100644
--- a/docs/reference/configuration.md
+++ b/docs/reference/configuration.md
@@ -931,17 +931,17 @@ Event blacklist does **not** affect NIP-11 metadata:
931 931
932**Description:** Maximum total connections to the relay. Prevents connection exhaustion DoS attacks. 932**Description:** Maximum total connections to the relay. Prevents connection exhaustion DoS attacks.
933**Type:** Integer 933**Type:** Integer
934**Default:** `500` 934**Default:** `4096`
935**Required:** No 935**Required:** No
936 936
937**Examples:** 937**Examples:**
938 938
939```bash 939```bash
940# Default: 500 connections 940# Default: 4096 connections
941NGIT_MAX_CONNECTIONS=500 941NGIT_MAX_CONNECTIONS=4096
942 942
943# Higher limit for large public relay 943# Higher limit for large public relay
944NGIT_MAX_CONNECTIONS=1000 944NGIT_MAX_CONNECTIONS=8000
945 945
946# Lower limit for private relay 946# Lower limit for private relay
947NGIT_MAX_CONNECTIONS=100 947NGIT_MAX_CONNECTIONS=100