Improve config a bit
This commit is contained in:
		
							parent
							
								
									59a8152855
								
							
						
					
					
						commit
						0b74f358d5
					
				
					 3 changed files with 2 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -1076,11 +1076,6 @@
 | 
			
		|||
            "type": "string",
 | 
			
		||||
            "example": "Garden Controller"
 | 
			
		||||
          },
 | 
			
		||||
          "ip": {
 | 
			
		||||
            "type": "string",
 | 
			
		||||
            "format": "ipv4",
 | 
			
		||||
            "example": "224.73.153.12"
 | 
			
		||||
          },
 | 
			
		||||
          "active": {
 | 
			
		||||
            "type": "boolean"
 | 
			
		||||
          },
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								core.pkl
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								core.pkl
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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 {
 | 
			
		||||
	level = "DEBUG"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,7 +23,7 @@ async fn main() -> Result<(), std::io::Error> {
 | 
			
		|||
	let listener = TcpListener::bind(format!("{}:{}", settings.server.host, settings.server.port))?;
 | 
			
		||||
	drop_privileges(&settings.permissions)?;
 | 
			
		||||
 | 
			
		||||
	init_logging(&settings.logging.level)?;
 | 
			
		||||
	init_logging(&settings.logging)?;
 | 
			
		||||
 | 
			
		||||
	let pool_size = 10;
 | 
			
		||||
	let pool = emgauwa_common::db::init(&settings.database, pool_size).await?;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue