This commit is contained in:
Mateusz Gruszczyński committed 2026-10-07 13:40:21 +02:00
1 parent 3a2eb4fe79
commit e0194fbaff
63 files changed
+1553 -379

No files matched your search

+29
View File
@@ -396,6 +396,35 @@ async fn run(
} else {
println!(" Sign in with your administrator account.");
}
let certificate_runtime = state.acme.runtime_view();
let runtime_pending = matches!(certificate_runtime.status, "checking" | "initializing");
let component_state = |available: bool| {
if available {
"available"
} else if runtime_pending {
"checking"
} else {
"unavailable"
}
};
let managed_python_directory = certificate_runtime
.managed_directory
.clone()
.unwrap_or_else(|| data_dir.join("acme-python").to_string_lossy().into_owned());
println!(" Source: https://git.linuxiarz.pl/gru/RustProxy");
println!(" Packages: https://rustproxy.linuxiarz.pl/");
println!(
" Python: {} (ACME mode: {}, pip: {}, Certbot: {}; managed env: {})",
component_state(certificate_runtime.python),
if runtime_pending {
"preparing"
} else {
certificate_runtime.mode
},
component_state(certificate_runtime.pip),
component_state(certificate_runtime.certbot),
managed_python_directory
);
println!(" Data: {}\n Stop: Ctrl+C\n", data_dir.display());
if state
.active_listeners
+1 -1
View File
@@ -41,7 +41,7 @@ use zeroize::Zeroizing;
#[command(
name = "rust-proxy",
version,
about = "RustProxy - independent Rust reverse proxy and static Web Server 0.27.0"
about = "RustProxy - independent Rust reverse proxy and static Web Server 0.27.1"
)]
struct Cli {
#[arg(
+1 -1
View File
@@ -239,7 +239,7 @@ async fn live_logs_command(dir: PathBuf, addr: SocketAddr) -> Result<()> {
}
});
let interactive = io::stdin().is_terminal() && io::stdout().is_terminal();
println!("RustProxy live logs 0.27.0 - all vhosts. Type 'help' for interactive filters; Ctrl-C or 'quit' exits.");
println!("RustProxy live logs 0.27.1 - all vhosts. Type 'help' for interactive filters; Ctrl-C or 'quit' exits.");
if interactive { print!("> "); io::stdout().flush()?; }
let mut filters = LiveLogFilters::default();
let mut history = std::collections::BTreeMap::<u64, serde_json::Value>::new();