diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.rs | 10 |
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 | } |