feat: cli use local certificate

This commit is contained in:
Miles Murgaw committed 2023-07-11 00:25:16 -04:00
1 parent 44c0eb66c5
commit db93252faf
3 files changed
+93 -15

No files matched your search

+15
View File
@@ -77,6 +77,12 @@ impl Default for DioxusConfig {
style: Some(vec![]),
script: Some(vec![]),
},
https: WebHttpsConfig {
enabled: None,
mkcert: None,
key_path: None,
cert_path: None,
},
},
plugin: toml::Value::Table(toml::map::Map::new()),
}
@@ -101,6 +107,7 @@ pub struct WebConfig {
pub proxy: Option<Vec<WebProxyConfig>>,
pub watcher: WebWatcherConfig,
pub resource: WebResourceConfig,
pub https: WebHttpsConfig,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -134,6 +141,14 @@ pub struct WebDevResourceConfig {
pub script: Option<Vec<PathBuf>>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WebHttpsConfig {
pub enabled: Option<bool>,
pub mkcert: Option<bool>,
pub key_path: Option<PathBuf>,
pub cert_path: Option<PathBuf>,
}
#[derive(Debug, Clone)]
pub struct CrateConfig {
pub out_dir: PathBuf,