v0.42.2_fix2
This commit is contained in:
1 parent
25148f26eb
commit
a75893d428
16 files changed
+301
-66
No files matched your search
@@ -171,7 +171,11 @@
|
||||
const attached = !!$("web-service-php-profile").value;
|
||||
const enabled = $("web-service-php-enabled").checked;
|
||||
$("web-service-php-enabled").disabled = attached;
|
||||
const phpFpm = $("web-service-php-handler").value === "php_fpm";
|
||||
const selectedProfile = attached
|
||||
? (envelope?.config.php_fpm_profiles || []).find(profile => profile.id === $("web-service-php-profile").value)
|
||||
: null;
|
||||
const phpFpm = (selectedProfile?.php?.handler || $("web-service-php-handler").value) === "php_fpm";
|
||||
for (const item of document.querySelectorAll(".fastcgi-php-only-local")) item.hidden = !phpFpm;
|
||||
$("web-service-php-values").disabled = !enabled || attached || !phpFpm;
|
||||
$("web-service-php-admin-values").disabled = !enabled || attached || !phpFpm;
|
||||
|
||||
@@ -560,8 +564,8 @@
|
||||
max_response_header_bytes: Number($("web-service-php-header-limit").value || 65536),
|
||||
stderr_log_bytes: Number($("web-service-php-stderr-limit").value || 0),
|
||||
custom_params: parseFastCgiParams($("web-service-php-custom-params").value),
|
||||
php_values: parsePhpValues($("web-service-php-values").value),
|
||||
php_admin_values: parsePhpValues($("web-service-php-admin-values").value)
|
||||
php_values: $("web-service-php-handler").value === "php_fpm" ? parsePhpValues($("web-service-php-values").value) : {},
|
||||
php_admin_values: $("web-service-php-handler").value === "php_fpm" ? parsePhpValues($("web-service-php-admin-values").value) : {}
|
||||
}
|
||||
};
|
||||
validatePhpCustomData(item.php.custom_params, item.php.php_values, item.php.php_admin_values);
|
||||
@@ -595,9 +599,8 @@
|
||||
if (kind === "fcgiwrap" && endpoint.value === "unix:/run/php/php-fpm.sock") {
|
||||
endpoint.value = "unix:/run/fcgiwrap.socket";
|
||||
}
|
||||
if (kind !== "php_fpm") {
|
||||
$("web-service-php-values").value = "";
|
||||
$("web-service-php-admin-values").value = "";
|
||||
if (kind === "php_fpm" && endpoint.value === "unix:/run/fcgiwrap.socket") {
|
||||
endpoint.value = "unix:/run/php/php-fpm.sock";
|
||||
}
|
||||
syncPhp();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user