mirror of
				https://github.com/Blah-IM/blahrs.git
				synced 2025-10-29 18:11:36 +00:00 
			
		
		
		
	Package with nix and add systemd unit example
This commit is contained in:
		
							parent
							
								
									a63d0df443
								
							
						
					
					
						commit
						e84b13c876
					
				
					 9 changed files with 287 additions and 3 deletions
				
			
		|  | @ -11,9 +11,11 @@ pub struct Config { | |||
|     pub server: ServerConfig, | ||||
| } | ||||
| 
 | ||||
| #[serde_inline_default] | ||||
| #[derive(Debug, Clone, Deserialize)] | ||||
| #[serde(deny_unknown_fields)] | ||||
| pub struct DatabaseConfig { | ||||
|     #[serde_inline_default("/var/lib/blahd/db.sqlite".into())] | ||||
|     pub path: PathBuf, | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -31,7 +31,9 @@ mod middleware; | |||
| mod config; | ||||
| mod utils; | ||||
| 
 | ||||
| /// Blah Chat Server
 | ||||
| #[derive(Debug, clap::Parser)] | ||||
| #[clap(about, version = option_env!("CFG_RELEASE").unwrap_or(env!("CARGO_PKG_VERSION")))] | ||||
| enum Cli { | ||||
|     /// Run the server with given configuration.
 | ||||
|     Serve { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 oxalica
						oxalica