Set default EIP-4361 login message

This commit is contained in:
silverpill 2022-05-11 21:10:48 +00:00
parent 5c2a112b0f
commit dad9640685
2 changed files with 9 additions and 4 deletions

View file

@ -4,12 +4,14 @@ storage_dir: files
http_host: '127.0.0.1'
http_port: 8380
log_level: info
# Domain name
instance_uri: myserver.net
instance_title: myserver
instance_short_description: my fedi instance
instance_uri: example.tld
instance_title: example
instance_short_description: my instance
# Long description can contain markdown syntax
instance_description: my fedi instance
instance_description: my instance
registrations_open: false
# EIP-4361 login message

View file

@ -74,6 +74,8 @@ fn parse_env() -> EnvConfig {
fn default_log_level() -> LogLevel { LogLevel::Info }
fn default_login_message() -> String { "Do not sign this message on other sites!".to_string() }
fn default_post_character_limit() -> usize { 2000 }
#[derive(Clone, Deserialize)]
@ -133,6 +135,7 @@ pub struct Config {
pub registrations_open: bool, // default is false
// EIP-4361 login message
#[serde(default = "default_login_message")]
pub login_message: String,
#[serde(default = "default_post_character_limit")]