Change some defaults

This commit is contained in:
Mike Dilger 2024-04-17 08:33:27 +12:00
parent adc9e81068
commit fc9da4d705
4 changed files with 15 additions and 15 deletions

View File

@ -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,
}
}
}

View File

@ -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
timeout_seconds = 60

View File

@ -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

View File

@ -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