From fc9da4d70537c56489a567d0805c3d98d7dddbe1 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Wed, 17 Apr 2024 08:33:27 +1200 Subject: [PATCH] Change some defaults --- chorus-lib/src/config.rs | 6 +++--- contrib/chorus.toml | 12 ++++++------ docs/CONFIG.md | 6 +++--- sample/sample.config.toml | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/chorus-lib/src/config.rs b/chorus-lib/src/config.rs index e1c18de..806a679 100644 --- a/chorus-lib/src/config.rs +++ b/chorus-lib/src/config.rs @@ -54,8 +54,8 @@ impl Default for FriendlyConfig { verify_events: true, allow_scraping: false, allow_scrape_if_limited_to: 100, - allow_scrape_if_max_seconds: 3600, - max_subscriptions: 32, + allow_scrape_if_max_seconds: 7200, + max_subscriptions: 128, serve_ephemeral: true, serve_relay_lists: true, server_log_level: "Info".to_string(), @@ -63,7 +63,7 @@ impl Default for FriendlyConfig { client_log_level: "Info".to_string(), enable_ip_blocking: true, minimum_ban_seconds: 1, - timeout_seconds: 30, + timeout_seconds: 60, } } } diff --git a/contrib/chorus.toml b/contrib/chorus.toml index ef5410a..ba4fffd 100644 --- a/contrib/chorus.toml +++ b/contrib/chorus.toml @@ -158,9 +158,9 @@ allow_scrape_if_limited_to = 100 # # See `allow_scraping` to learn the definition of a scrape. # -# The default is 3600. +# The default is 7200. # -allow_scrape_if_max_seconds = 3600 +allow_scrape_if_max_seconds = 7200 # This is an integer indicating the maximum number of subscriptions a connection can have open @@ -173,9 +173,9 @@ allow_scrape_if_max_seconds = 3600 # # It is strongly recommended to not go below 16. # -# Default is 32. +# Default is 128. # -max_subscriptions = 32 +max_subscriptions = 128 # Whether or not to accept and serve all ephemeral events to everybody. @@ -242,6 +242,6 @@ minimum_ban_seconds = 1 # Number of seconds beyond which chorus times out a client that has no open subscriptions. # -# Default is 30 +# Default is 60 # -timeout_seconds = 30 \ No newline at end of file +timeout_seconds = 60 \ No newline at end of file diff --git a/docs/CONFIG.md b/docs/CONFIG.md index a132124..dd1ac2d 100644 --- a/docs/CONFIG.md +++ b/docs/CONFIG.md @@ -141,7 +141,7 @@ This is a u64 number of seconds indicating a filter time range under which a scr See `allow_scraping` to learn the definition of a scrape. -The default is 3600. +The default is 7200. ### max_subscriptions @@ -151,7 +151,7 @@ If you set this too low, clients will be incentivised to resubmit updated subscr It is strongly recommended to not go below 16. -Default is 32. +Default is 128. ### serve_ephemeral @@ -213,4 +213,4 @@ Default is 1 Number of seconds beyond which chorus times out a client that has no open subscriptions. -Default is 30 +Default is 60 diff --git a/sample/sample.config.toml b/sample/sample.config.toml index d3ac3d0..74b1b9e 100644 --- a/sample/sample.config.toml +++ b/sample/sample.config.toml @@ -16,8 +16,8 @@ user_hex_keys = [ verify_events = true allow_scraping = false allow_scrape_if_limited_to = 100 -allow_scrape_if_max_seconds = 3600 -max_subscriptions = 32 +allow_scrape_if_max_seconds = 7200 +max_subscriptions = 128 serve_ephemeral = true serve_relay_lists = true server_log_level = "Info" @@ -25,4 +25,4 @@ library_log_level = "Info" client_log_level = "Warn" enable_ip_blocking = true minimum_ban_seconds = 1 -timeout_seconds = 30 +timeout_seconds = 60