upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-12 22:51:43 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-12 22:51:43 +0000
commit51751d59f30a0c0f396afd1873ece9f4f77b44de (patch)
treecfec6555427f1be38997e00f313549c41dfaa609 /src
parentab3337d0a3bf25c282f4d48e5d6150cf291f41e5 (diff)
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).
Diffstat (limited to 'src')
-rw-r--r--src/config.rs10
1 files changed, 5 insertions, 5 deletions
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 {
352 pub relay_data_path: String, 352 pub relay_data_path: String,
353 353
354 /// Server bind address (IP:PORT) 354 /// Server bind address (IP:PORT)
355 #[arg(long, env = "NGIT_BIND_ADDRESS", default_value = "127.0.0.1:8080")] 355 #[arg(long, env = "NGIT_BIND_ADDRESS", default_value = "127.0.0.1:7334")]
356 pub bind_address: String, 356 pub bind_address: String,
357 357
358 /// Database backend type 358 /// Database backend type
@@ -678,13 +678,13 @@ impl Config {
678 .expect("Failed to generate test nsec"); 678 .expect("Failed to generate test nsec");
679 679
680 Self { 680 Self {
681 domain: "localhost:8080".to_string(), 681 domain: "localhost:7334".to_string(),
682 relay_owner_nsec: Some(nsec), 682 relay_owner_nsec: Some(nsec),
683 relay_name_override: Some("test relay".to_string()), 683 relay_name_override: Some("test relay".to_string()),
684 relay_description: "test description".to_string(), 684 relay_description: "test description".to_string(),
685 git_data_path: "./test_data/git".to_string(), 685 git_data_path: "./test_data/git".to_string(),
686 relay_data_path: "./test_data/relay".to_string(), 686 relay_data_path: "./test_data/relay".to_string(),
687 bind_address: "127.0.0.1:8080".to_string(), 687 bind_address: "127.0.0.1:7334".to_string(),
688 database_backend: DatabaseBackend::Memory, 688 database_backend: DatabaseBackend::Memory,
689 metrics_enabled: true, 689 metrics_enabled: true,
690 metrics_connection_per_ip_abuse_threshold: 10, 690 metrics_connection_per_ip_abuse_threshold: 10,
@@ -714,8 +714,8 @@ mod tests {
714 #[test] 714 #[test]
715 fn test_default_values() { 715 fn test_default_values() {
716 let config = Config::for_testing(); 716 let config = Config::for_testing();
717 assert_eq!(config.domain, "localhost:8080"); 717 assert_eq!(config.domain, "localhost:7334");
718 assert_eq!(config.bind_address, "127.0.0.1:8080"); 718 assert_eq!(config.bind_address, "127.0.0.1:7334");
719 // for_testing() uses Memory, but the actual default is Lmdb 719 // for_testing() uses Memory, but the actual default is Lmdb
720 assert_eq!(config.database_backend, DatabaseBackend::Memory); 720 assert_eq!(config.database_backend, DatabaseBackend::Memory);
721 } 721 }