Improve config a bit

This commit is contained in:
Tobias Reisinger 2024-06-11 17:47:18 +02:00
parent 59a8152855
commit 0b74f358d5
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 2 additions and 7 deletions

View file

@ -1076,11 +1076,6 @@
"type": "string", "type": "string",
"example": "Garden Controller" "example": "Garden Controller"
}, },
"ip": {
"type": "string",
"format": "ipv4",
"example": "224.73.153.12"
},
"active": { "active": {
"type": "boolean" "type": "boolean"
}, },

View file

@ -1,4 +1,4 @@
amends "package://emgauwa.app/pkl/emgauwa@0.1.1#/core.pkl" amends "package://emgauwa.app/pkl/emgauwa@0.2.1#/core.pkl"
logging { logging {
level = "DEBUG" level = "DEBUG"

View file

@ -23,7 +23,7 @@ async fn main() -> Result<(), std::io::Error> {
let listener = TcpListener::bind(format!("{}:{}", settings.server.host, settings.server.port))?; let listener = TcpListener::bind(format!("{}:{}", settings.server.host, settings.server.port))?;
drop_privileges(&settings.permissions)?; drop_privileges(&settings.permissions)?;
init_logging(&settings.logging.level)?; init_logging(&settings.logging)?;
let pool_size = 10; let pool_size = 10;
let pool = emgauwa_common::db::init(&settings.database, pool_size).await?; let pool = emgauwa_common::db::init(&settings.database, pool_size).await?;