v0.40.1
This commit is contained in:
1 parent
748fe1d146
commit
27b640a0df
22 files changed
+532
-30
No files matched your search
@@ -166,6 +166,22 @@ enum TlsCommand {
|
||||
key: PathBuf,
|
||||
},
|
||||
Reload,
|
||||
/// Check or force renewal of ACME certificates.
|
||||
///
|
||||
/// Panel mode: one managed certificate (`--id`) through the administration
|
||||
/// API. Headless mode: the running service's ACME certificates (all, or
|
||||
/// those matching `--id` by certificate id or domain name).
|
||||
Renew {
|
||||
/// Certificate id; in headless mode also a domain name (repeatable)
|
||||
#[arg(long = "id", value_delimiter = ',')]
|
||||
ids: Vec<String>,
|
||||
/// Request a new certificate even if it is not due yet (counts against CA rate limits)
|
||||
#[arg(long, conflicts_with = "dry_run")]
|
||||
force: bool,
|
||||
/// Panel mode only: validate the renewal without deploying it
|
||||
#[arg(long)]
|
||||
dry_run: bool,
|
||||
},
|
||||
}
|
||||
#[derive(Args)]
|
||||
struct ServeOptions {
|
||||
@@ -482,6 +498,19 @@ async fn application() -> Result<()> {
|
||||
)
|
||||
.await
|
||||
}
|
||||
Command::Tls {
|
||||
action: TlsCommand::Renew { ids, force, dry_run },
|
||||
} if cli.headless => {
|
||||
ensure!(
|
||||
!dry_run,
|
||||
"--dry-run is not available in headless mode; use --acme-staging to test issuance"
|
||||
);
|
||||
signal_headless_renew(
|
||||
&resolve_installed_data_dir(cli.data_dir, data_dir_explicit),
|
||||
ids,
|
||||
force,
|
||||
)
|
||||
}
|
||||
Command::Reload => {
|
||||
config_command(
|
||||
resolve_installed_data_dir(cli.data_dir, data_dir_explicit),
|
||||
|
||||
Reference in new issue
Block a user