v0.38.2
This commit is contained in:
1 parent
758cfd6274
commit
8bdec5c757
32 files changed
+418
-44
No files matched your search
+27
-2
@@ -2,7 +2,7 @@
|
||||
"openapi": "3.0.3",
|
||||
"info": {
|
||||
"title": "RustProxy Administration API",
|
||||
"version": "0.38.1",
|
||||
"version": "0.38.2",
|
||||
"description": "Administration API for the active panel origin. Sign in through the panel; the same-origin HttpOnly cookie authenticates all private operations. Mutations also require the exact Origin, X-RustProxy-Request: 1 and a session-bound X-CSRF-Token. Loopback HTTP is the default; Settings can enable HTTPS before using a non-loopback administration bind. This document contains no live configuration or credentials. Object schemas marked extensible are summaries: full configuration validation is authoritative in Rust. The API also permits explicitly scoped GeneralApiBearer tokens on a narrow route allowlist, with RO/RW and source CIDR checks; API-token management and Prometheus-token management are browser-session-only."
|
||||
},
|
||||
"servers": [
|
||||
@@ -756,6 +756,12 @@
|
||||
"default": null,
|
||||
"description": "If true, only emit cache diagnostic headers for actual HIT responses, never MISS/BYPASS. null inherits global expose_only_hits. Via is controlled independently."
|
||||
},
|
||||
"expose_detailed_status": {
|
||||
"type": "boolean",
|
||||
"nullable": true,
|
||||
"default": null,
|
||||
"description": "If true, X-Cache reports STALE or REVALIDATED instead of HIT for such responses. null inherits global expose_detailed_status."
|
||||
},
|
||||
"rules": {
|
||||
"type": "array",
|
||||
"maxItems": 128,
|
||||
@@ -852,7 +858,19 @@
|
||||
"timing_headers": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Expose Server-Timing diagnostics for this vhost."
|
||||
"description": "Append Server-Timing diagnostics for this vhost to the origin's own Server-Timing metrics. Responses served from the cache drop the stored origin metrics."
|
||||
},
|
||||
"timing_header_names": {
|
||||
"type": "string",
|
||||
"enum": ["standard", "cdn", "legacy"],
|
||||
"default": "standard",
|
||||
"description": "Metric names in Server-Timing. standard (reverse proxy): proxy;dur, upstream;dur, proxy-cache;desc. cdn (RustProxy is the outermost CDN-like edge): edge;dur, origin;dur, cdn-cache;desc. legacy (before 0.38.2): proxy;dur, origin;dur, cache;desc. The cache value is HIT, MISS, BYPASS, STALE or REVALIDATED."
|
||||
},
|
||||
"timing_allow_origin": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"maxItems": 16,
|
||||
"description": "Timing-Allow-Origin sent with Server-Timing: origins such as https://app.example.com that may read the timings from scripts, or a single \"*\". Empty sends no header (same-origin scripts can always read them)."
|
||||
},
|
||||
"backend_header": {
|
||||
"type": "boolean",
|
||||
@@ -2461,6 +2479,11 @@
|
||||
"default": false,
|
||||
"description": "Suppress RustProxy cache diagnostic headers on MISS/BYPASS. Cache HIT diagnostics remain governed by expose_* flags. The independently configured Via header is unaffected."
|
||||
},
|
||||
"expose_detailed_status": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "X-Cache reports STALE (served past freshness: grace, stale-while-revalidate, stale-if-error, collapse timeout) or REVALIDATED (confirmed by the origin with 304) instead of HIT. These still count as HIT for expose_only_hits and the hit ratio."
|
||||
},
|
||||
"http_invalidation_allowed_cidrs": {
|
||||
"type": "array",
|
||||
"description": "Optional IP/CIDR allowlist for HTTP BAN and PURGE on matched public vhosts. Empty disables all HTTP invalidation. Max 32 entries; /0 networks forbidden. Trusted reverse proxies must provide an authenticated forwarding chain.",
|
||||
@@ -11361,6 +11384,8 @@
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"HIT",
|
||||
"STALE",
|
||||
"REVALIDATED",
|
||||
"MISS",
|
||||
"BYPASS",
|
||||
"-"
|
||||
|
||||
Reference in new issue
Block a user