Compare commits
No commits in common. "39175412bae2f0298f90050207cc74a89d82ccb9" and "9887d5196f5d429df6d0f56b22f4f8f36403db62" have entirely different histories.
39175412ba
...
9887d5196f
2 changed files with 6 additions and 3 deletions
|
@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize};
|
|||
|
||||
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
||||
struct SiteInfo {
|
||||
name: String,
|
||||
aliases: Vec<String>,
|
||||
/// Aliases for this subdomain - will have the same exact settings
|
||||
/// The socket address (e.g. `192.168.1.8:8080`) or port number (if on `localhost`) of the service to reverse proxy
|
||||
|
@ -37,6 +38,7 @@ pub(crate) fn example_config() -> String {
|
|||
subdomains.insert(
|
||||
"qbittorrent".to_string(),
|
||||
SiteInfo {
|
||||
name: "Qbittorrent".to_string(),
|
||||
aliases: vec!["qb".to_string()],
|
||||
address: "6011".to_string(),
|
||||
auth: None,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use clap::Parser;
|
||||
use std::{path::PathBuf, process::exit};
|
||||
use cli::Commands;
|
||||
use std::{collections::HashMap, path::PathBuf, process::exit};
|
||||
mod build;
|
||||
mod cli;
|
||||
mod data;
|
||||
|
@ -9,12 +10,12 @@ fn main() {
|
|||
|
||||
let args = cli::Cli::parse();
|
||||
|
||||
let config_path: PathBuf = args.config;
|
||||
let config = args.config;
|
||||
|
||||
if args.print_example_config {
|
||||
println!("{}", data::example_config());
|
||||
exit(0);
|
||||
}
|
||||
|
||||
println!("Config path: {}", config_path.to_str().unwrap())
|
||||
println!("Config: {}", config.to_str().unwrap())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue