0.34.6_repo_cleanup
This commit is contained in:
1 parent
ce1a90397c
commit
133d2f0f91
273 files changed
+5969
-6926
No files matched your search
@@ -228,8 +228,6 @@ fn status_payload(state: &App) -> Value {
|
||||
});
|
||||
payload
|
||||
}
|
||||
// SSE and emergency polling use only volatile telemetry. Never serialize the
|
||||
// whole configuration, OS diagnostics or certificate metadata on each tick.
|
||||
include!("status_live.rs");
|
||||
async fn backend_status(State(state): State<Arc<App>>) -> Json<Value> {
|
||||
let snapshot = state.config.load_full();
|
||||
@@ -275,9 +273,6 @@ async fn certificate_inventory(State(state): State<Arc<App>>) -> Json<Value> {
|
||||
let config = &snapshot.envelope.config;
|
||||
let configured_certificates = config.tls.certificates.clone();
|
||||
let certificate_directory = state.policy.cert_dir.clone();
|
||||
// Inspect only public certificate files on a blocking worker; never read keys.
|
||||
// Live PEM coverage wins so in-place renewals are reflected immediately; stored
|
||||
// metadata is only a fallback when the public certificate file cannot be read.
|
||||
let inspected_metadata = tokio::task::spawn_blocking(move || {
|
||||
configured_certificates
|
||||
.into_iter()
|
||||
@@ -313,8 +308,6 @@ async fn certificate_inventory(State(state): State<Arc<App>>) -> Json<Value> {
|
||||
json!({"revision":snapshot.envelope.revision,"certificates":entries,"acme":true, "providers":["http01", "cloudflare", "ovh", "rfc2136"]}),
|
||||
)
|
||||
}
|
||||
// Storage metadata belongs to GET /api/config, not to the editable `config`
|
||||
// document or the revisioned envelopes returned by update/restore endpoints.
|
||||
#[derive(Serialize)]
|
||||
struct ConfigurationRead {
|
||||
#[serde(flatten)]
|
||||
|
||||
Reference in new issue
Block a user