diff --git a/README.md b/README.md index d250058..1f08efe 100644 --- a/README.md +++ b/README.md @@ -112,15 +112,15 @@ Whether to print incoming activities to the console when requests hit the /inbox ##### `RESTRICTED_MODE` This setting enables an 'allowlist' setup where only servers that have been explicitly enabled through the `relay -a` command can join the relay. This is `false` by default. If `RESTRICTED_MODE` is not enabled, then manually allowing domains with `relay -a` has no effect. ##### `VALIDATE_SIGNATURES` -This setting enforces checking HTTP signatures on incoming activities. It defaults to `false` but should be set to `true` in production scenarios +This setting enforces checking HTTP signatures on incoming activities. It defaults to `true` ##### `HTTPS` -Whether the current server is running on an HTTPS port or not. This is used for generating URLs to the current running relay. By default it is set to `false`, but should be `true` in production scenarios. +Whether the current server is running on an HTTPS port or not. This is used for generating URLs to the current running relay. By default it is set to `true` ##### `PUBLISH_BLOCKS` Whether or not to publish a list of blocked domains in the `nodeinfo` metadata for the server. It defaults to `false`. ##### `SLED_PATH` Where to store the on-disk database of connected servers. This defaults to `./sled/db-0.34`. ##### `RUST_LOG` -The log level to print. Available levels are `ERROR`, `WARN`, `INFO`, `DEBUG`, and `TRACE`. You can also specify module paths to enable some logs but not others, such as `RUST_LOG=warn,tracing_actix_web=info,relay=info` +The log level to print. Available levels are `ERROR`, `WARN`, `INFO`, `DEBUG`, and `TRACE`. You can also specify module paths to enable some logs but not others, such as `RUST_LOG=warn,tracing_actix_web=info,relay=info`. This defaults to `warn` ##### `SOURCE_REPO` The URL to the source code for the relay. This defaults to `https://git.asonix.dog/asonix/relay`, but should be changed if you're running a fork hosted elsewhere. ##### `API_TOKEN` diff --git a/src/config.rs b/src/config.rs index 1bb4f19..49c24ba 100644 --- a/src/config.rs +++ b/src/config.rs @@ -112,8 +112,8 @@ impl Config { .set_default("port", 8080u64)? .set_default("debug", true)? .set_default("restricted_mode", false)? - .set_default("validate_signatures", false)? - .set_default("https", false)? + .set_default("validate_signatures", true)? + .set_default("https", true)? .set_default("publish_blocks", false)? .set_default("sled_path", "./sled/db-0-34")? .set_default("source_repo", "https://git.asonix.dog/asonix/relay")? diff --git a/src/main.rs b/src/main.rs index ed24108..cb500bb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,7 +45,7 @@ fn init_subscriber( LogTracer::init()?; let targets: Targets = std::env::var("RUST_LOG") - .unwrap_or_else(|_| "info".into()) + .unwrap_or_else(|_| "warn".into()) .parse()?; let format_layer = tracing_subscriber::fmt::layer()