v0.42.3
This commit is contained in:
1 parent
a75893d428
commit
bfbeedfad7
43 files changed
+5834
-125
No files matched your search
+74
-20
@@ -2,7 +2,7 @@
|
||||
"openapi": "3.0.3",
|
||||
"info": {
|
||||
"title": "RustProxy Administration API",
|
||||
"version": "0.42.2",
|
||||
"version": "0.42.3",
|
||||
"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": [
|
||||
@@ -3131,9 +3131,12 @@
|
||||
"enum": [
|
||||
"welcome",
|
||||
"empty",
|
||||
"html"
|
||||
"html",
|
||||
"builtin",
|
||||
"cloudflare"
|
||||
],
|
||||
"default": "welcome"
|
||||
"default": "welcome",
|
||||
"description": "Optional offline Cloudflare-style page uses a pre-generated static HTML template with inline CSS; no runtime file reads or third-party requests. Existing built-in and custom HTML options are unchanged. Unsupported local statuses fall back to the normal built-in HTML."
|
||||
},
|
||||
"status": {
|
||||
"type": "integer",
|
||||
@@ -11204,29 +11207,80 @@
|
||||
"get": {
|
||||
"summary": "Live DNS/DDNS ACL resolver diagnostics",
|
||||
"description": "Authenticated read-only snapshot of every DNS ACL name configured globally, in profiles, Vhosts and locations. Status is pending, resolved, failed or expired. Addresses are currently valid A/AAAA records; an error or expired entry grants no access. Check the actual client IP separately. DNS lookups are refreshed every 60 seconds and valid for at most 180 seconds.",
|
||||
"tags": ["Monitoring"],
|
||||
"tags": [
|
||||
"Monitoring"
|
||||
],
|
||||
"operationId": "get_api_acl_dns_status",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Resolver state",
|
||||
"content": {"application/json": {"schema": {
|
||||
"type": "object",
|
||||
"required": ["refresh_seconds", "hostnames"],
|
||||
"properties": {
|
||||
"refresh_seconds": {"type": "integer", "example": 60},
|
||||
"hostnames": {"type": "array", "items": {"type": "object", "required": ["hostname", "state", "addresses"], "properties": {
|
||||
"hostname": {"type": "string"},
|
||||
"state": {"type": "string", "enum": ["pending", "resolved", "failed", "expired"]},
|
||||
"addresses": {"type": "array", "items": {"type": "string"}},
|
||||
"last_checked_unix_ms": {"type": "integer", "nullable": true},
|
||||
"valid_for_seconds": {"type": "integer", "nullable": true},
|
||||
"error": {"type": "string", "nullable": true}
|
||||
}}}
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"refresh_seconds",
|
||||
"hostnames"
|
||||
],
|
||||
"properties": {
|
||||
"refresh_seconds": {
|
||||
"type": "integer",
|
||||
"example": 60
|
||||
},
|
||||
"hostnames": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"hostname",
|
||||
"state",
|
||||
"addresses"
|
||||
],
|
||||
"properties": {
|
||||
"hostname": {
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"pending",
|
||||
"resolved",
|
||||
"failed",
|
||||
"expired"
|
||||
]
|
||||
},
|
||||
"addresses": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"last_checked_unix_ms": {
|
||||
"type": "integer",
|
||||
"nullable": true
|
||||
},
|
||||
"valid_for_seconds": {
|
||||
"type": "integer",
|
||||
"nullable": true
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}}}
|
||||
}
|
||||
},
|
||||
"401": {"description": "Authentication required"},
|
||||
"403": {"description": "Administrative access forbidden"}
|
||||
"401": {
|
||||
"description": "Authentication required"
|
||||
},
|
||||
"403": {
|
||||
"description": "Administrative access forbidden"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user