feat: registration tokens
This commit is contained in:
parent
3e518773e2
commit
c028e0553c
6 changed files with 37 additions and 15 deletions
|
@ -267,6 +267,10 @@ impl KeyValueDatabase {
|
|||
}
|
||||
};
|
||||
|
||||
if config.registration_token == Some(String::new()) {
|
||||
return Err(Error::bad_config("Registration token is empty"));
|
||||
}
|
||||
|
||||
if config.max_request_size < 1024 {
|
||||
error!(?config.max_request_size, "Max request size is less than 1KB. Please increase it.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue