This commit is contained in:
Mateusz Gruszczyński committed 2026-11-26 11:02:46 +01:00
1 parent aa0a271a1c
commit f38a2b9e5e
38 files changed
+1098 -160

No files matched your search

+66 -3
View File
@@ -2,7 +2,7 @@
"openapi": "3.0.3",
"info": {
"title": "RustProxy Administration API",
"version": "0.42.1",
"version": "0.42.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": [
@@ -6806,9 +6806,25 @@
"maxLength": 8192
},
"description": "Trusted operator PHP-FPM administrative php.ini directives packed into PHP_ADMIN_VALUE. Restrict access to FastCGI endpoints."
},
"handler": {
"type": "string",
"enum": [
"php_fpm",
"fcgiwrap",
"fastcgi"
],
"default": "php_fpm",
"description": "PHP-FPM, a CGI runner such as fcgiwrap, or a general FastCGI responder. Existing PHP configurations default to php_fpm."
},
"script_name_prefix": {
"type": "string",
"maxLength": 256,
"default": "",
"description": "Fixed public URL mount prefix prepended to SCRIPT_NAME when the Vhost route strips or rewrites a URL prefix. SCRIPT_FILENAME remains inside the Web Service document root."
}
},
"description": "Optional bounded direct FastCGI connection to a PHP-FPM pool."
"description": "Optional bounded direct FastCGI connection to PHP-FPM, a CGI runner, or another FastCGI responder."
},
"htaccess": {
"type": "object",
@@ -6839,7 +6855,7 @@
"strict": {
"type": "boolean",
"default": false,
"description": "Reject Apply when an unsupported directive is found instead of logging and ignoring it."
"description": "Reject unsupported non-security directives during Apply instead of logging and skipping them. Unsupported access-control and handler constructs are rejected regardless of this setting; supported Order/Allow/Deny IP/CIDR/all rules are enforced."
}
},
"description": "Migration-oriented Apache .htaccess subset compiled at Web Service apply time; never parsed per request."
@@ -13268,6 +13284,53 @@
}
}
},
"/api/web-services/htaccess-warnings": {
"get": {
"summary": "Compiled .htaccess warnings for Web Services",
"tags": [
"Configuration"
],
"operationId": "get_api_web_services_htaccess_warnings",
"description": "Authenticated read-only snapshot. Returns {revision, services:{id:{files_loaded,warnings:[file:line:reason]}}} for configured .htaccess services. Warnings describe non-security directives skipped because Strict is disabled. Unsupported security directives fail validation instead of appearing as warnings. No disk scan is performed per request.",
"security": [
{
"AdminSession": []
}
],
"responses": {
"200": {
"description": "Compiled diagnostics from the active configuration",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"401": {
"description": "Authentication required",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Host or session access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/api/config/{section}": {
"put": {
"summary": "Replace one configuration section atomically",