From 51751d59f30a0c0f396afd1873ece9f4f77b44de Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 12 Jan 2026 22:51:43 +0000 Subject: Change default port from 8080 to 7334 (NGIT on phone keypad) - Update default bind address in src/config.rs to 127.0.0.1:7334 - Update all four critical config sources per AGENTS.md: - src/config.rs (code default and tests) - .env.example (development template) - docs/reference/configuration.md (user documentation) - nix/module.nix (NixOS deployment) - Update all documentation examples and references: - README.md (with note about phone keypad mnemonic) - docs/how-to/*.md (deploy, prometheus-setup, test-compliance) - docs/explanation/*.md (architecture, comparison) - docs/learnings/grasp-audit.md Port 7334 spells NGIT on a phone keypad, making it memorable and project-specific. All tests pass (336 lib tests + 51 integration tests). --- src/config.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/config.rs b/src/config.rs index a5e4344..0f0d853 100644 --- a/src/config.rs +++ b/src/config.rs @@ -352,7 +352,7 @@ pub struct Config { pub relay_data_path: String, /// Server bind address (IP:PORT) - #[arg(long, env = "NGIT_BIND_ADDRESS", default_value = "127.0.0.1:8080")] + #[arg(long, env = "NGIT_BIND_ADDRESS", default_value = "127.0.0.1:7334")] pub bind_address: String, /// Database backend type @@ -678,13 +678,13 @@ impl Config { .expect("Failed to generate test nsec"); Self { - domain: "localhost:8080".to_string(), + domain: "localhost:7334".to_string(), relay_owner_nsec: Some(nsec), relay_name_override: Some("test relay".to_string()), relay_description: "test description".to_string(), git_data_path: "./test_data/git".to_string(), relay_data_path: "./test_data/relay".to_string(), - bind_address: "127.0.0.1:8080".to_string(), + bind_address: "127.0.0.1:7334".to_string(), database_backend: DatabaseBackend::Memory, metrics_enabled: true, metrics_connection_per_ip_abuse_threshold: 10, @@ -714,8 +714,8 @@ mod tests { #[test] fn test_default_values() { let config = Config::for_testing(); - assert_eq!(config.domain, "localhost:8080"); - assert_eq!(config.bind_address, "127.0.0.1:8080"); + assert_eq!(config.domain, "localhost:7334"); + assert_eq!(config.bind_address, "127.0.0.1:7334"); // for_testing() uses Memory, but the actual default is Lmdb assert_eq!(config.database_backend, DatabaseBackend::Memory); } -- cgit v1.2.3