Updated variables

main
Anthony 2024-09-20 22:33:41 +08:00
parent 003bc09580
commit 2857477806
2 changed files with 9 additions and 9 deletions

View File

@ -1,12 +1,12 @@
var lsAppid = "9e6afcf310004ac84060f90ff41a5aba"; var lsAppid = "9e6afcf310004ac84060f90ff41a5aba";
var isLS = jelastic.dev.apps.GetApp(lsAppid); var isLS = jelastic.dev.apps.GetApp(lsAppid);
// Define settings statically as form fields are removed // Define settings statically
var settings = { var settings = {
"php_version": "php8.3", // PHP version is always set to PHP 8.3 phpVersion: "php8.3", // Match variable name
"ls-addon": true, // Always enabled lsAddon: true, // Simplify and match name
"waf-addon": true, // Always enabled wafAddon: true, // Simplify and match name
"wp_protect-addon": true // Always enabled wpProtectAddon: true // Simplify and match name
}; };
return { return {

View File

@ -4,14 +4,14 @@ var resp = {
result: 0, result: 0,
ssl: !!jelastic.billing.account.GetQuotas('environment.jelasticssl.enabled').array[0].value, ssl: !!jelastic.billing.account.GetQuotas('environment.jelasticssl.enabled').array[0].value,
nodes: [] nodes: []
} };
resp.nodes.push({ resp.nodes.push({
nodeType: "llsmp", nodeType: "llsmp",
engine: "${settings.phpVersion}", engine: "${settings.phpVersion}",
count: 1, count: 1,
cloudlets: 16, // Use a default value or define in settings cloudlets: 16,
diskLimit: 10, // Use a default value or define in settings diskLimit: 10,
nodeGroup: "cp", nodeGroup: "cp",
skipNodeEmails: true, skipNodeEmails: true,
displayName: "AppServer", displayName: "AppServer",
@ -22,6 +22,6 @@ resp.nodes.push({
WP_PROTECT: wpbfp, WP_PROTECT: wpbfp,
WP_PROTECT_LIMIT: 100 WP_PROTECT_LIMIT: 100
} }
}) });
return resp; return resp;