Initial YakPanel commit

This commit is contained in:
Niranjan
2026-04-07 02:04:22 +05:30
commit 2826d3e7f3
5359 changed files with 1390724 additions and 0 deletions

BIN
config/GeoLite2-City.mmdb Normal file

Binary file not shown.

1
config/abort.json Normal file
View File

@@ -0,0 +1 @@
404

1
config/api.json Normal file
View File

@@ -0,0 +1 @@
{"token": "", "open": false, "limit_addr": []}

1
config/config.json Normal file
View File

@@ -0,0 +1 @@
{"product": "Linux panel", "setup_path": "/www/server", "openlitespeed_path": "/usr/local", "language": "English", "title": "YakPanel Linux panel", "brand": "YakPanel", "root_path": "/www", "template": "default", "logs_path": "/www/wwwlogs", "home": "https://www.yakpanel.com", "self_hosted": true, "recycle_bin": true}

767
config/crontab.json Normal file
View File

@@ -0,0 +1,767 @@
[
{
"script_id": 99,
"type_id": 6,
"is_baota": 1,
"name": "Port Detection",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\nimport os\nimport sys\nos.chdir('/www/server/panel')\nsys.path.insert(0,'class/')\nimport public\nimport socket\narg = sys.argv[-1]\nip,port = arg.split(':')\ntry:\n s = socket.socket()\n s.settimeout(0.15)\n s.connect((ip,int(port)))\n s.close()\nexcept:\n print('closed')\n sys.exit(1)\n\nprint('open')",
"version": "1.0",
"return_type": "string",
"script_type": "python",
"ps": "Output description: closed=port closed, open=port processing open status",
"create_time": 1668247589,
"is_args": 1,
"args_title": "Detection target",
"args_ps": "For example:127.0.0.1:443"
},
{
"script_id": 98,
"type_id": 1,
"is_baota": 1,
"name": "Get PHP Service Status",
"status": 1,
"author": "yakpanel",
"script": "php_version=\"${1/./}\"\n/etc/init.d/php-fpm-$php_version status",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains' stopped ', it means it has stopped (you need to enter the version number)",
"create_time": 1668245068,
"is_args": 1,
"args_title": "PHP Version",
"args_ps": "Please fill in the PHP version, such as 8.1"
},
{
"script_id": 94,
"type_id": 3,
"is_baota": 1,
"name": "Send Email Notification",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\nimport os\nimport sys\nos.chdir('/www/server/panel')\nsys.path.insert(0,'class/')\nimport public\nmsg = sys.argv[-1]\nres = public.push_msg('mail',{'title':\"【yakpanel task arrangement】\" + msg[:10],'msg':msg})\nif 'status' in res and res['status']:\n print(\"done\")\nelse:\n print(res)",
"version": "1.0",
"return_type": "string",
"script_type": "python",
"ps": "You need to configure the [Email] and [Recipient Email] in the [Panel Settings] - [Alarm Notifications] - [Alarm Settings] to successfully send",
"create_time": 1668243392,
"is_args": 1,
"args_title": "Notification content",
"args_ps": "Supports text and HTML formats"
},
{
"script_id": 92,
"type_id": 5,
"is_baota": 1,
"name": "Get The Specified Website Description",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@author hwliang(hwl@yakpanel.com)\n#@print string\nimport sys\nimport requests\nimport re\n\nsys.stdout.reconfigure(encoding='utf-8')\nsys.stderr.reconfigure(encoding='utf-8')\n\nurl = sys.argv[-1]\ntry:\n res = requests.get(url,timeout=30)\n res.encoding = res.apparent_encoding\nexcept Exception as ex:\n print(ex)\n sys.exit(1)\ndescription = re.findall(r\"<meta\\s+name=\\\"description\\\"\\s+content=\\\"(.{0,1024})\\\"\\s?\\/?>\", res.text)\nif description:\n print(description[0])\nelse:\n print('empty')",
"version": "1.1",
"return_type": "string",
"script_type": "python",
"ps": "If the result is empty or not obtained, output 'empty'",
"create_time": 1668242334,
"is_args": 1,
"args_title": "URL address",
"args_ps": "Please fill in the URL address, such as: https://yakpanel.com"
},
{
"script_id": 91,
"type_id": 5,
"is_baota": 1,
"name": "Retrieve Specified Website Keywords",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@author hwliang(hwl@yakpanel.com)\n#@print string\nimport sys\nimport requests\nimport re\n\nsys.stdout.reconfigure(encoding='utf-8')\nsys.stderr.reconfigure(encoding='utf-8')\n\nurl = sys.argv[-1]\ntry:\n res = requests.get(url,timeout=30)\n res.encoding = res.apparent_encoding\nexcept Exception as ex:\n print(ex)\n sys.exit(1)\nkeywords = re.findall(r\"<meta\\s+name=\\\"keywords\\\"\\s+content=\\\"(.{0,1024})\\\"\\s*\\/?>\", res.text)\nif keywords:\n print(keywords[0])\nelse:\n print('empty')",
"version": "1.1",
"return_type": "string",
"script_type": "python",
"ps": "If the result is empty or not obtained, output 'empty'",
"create_time": 1668242334,
"is_args": 1,
"args_title": "URL address",
"args_ps": "Please fill in the URL address, such as: https://yakpanel.com"
},
{
"script_id": 90,
"type_id": 5,
"is_baota": 1,
"name": "Get The Specified Website Title",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@author hwliang(hwl@yakpanel.com)\n#@print string\nimport sys\nimport requests\nimport re\n\nsys.stdout.reconfigure(encoding='utf-8')\nsys.stderr.reconfigure(encoding='utf-8')\n\nurl = sys.argv[-1]\ntry:\n res = requests.get(url,timeout=30)\n res.encoding = res.apparent_encoding\nexcept Exception as ex:\n print(ex)\n sys.exit(1)\ntitle = re.findall(r\"<title>[\\s]*(.{0,1024})\\s*<\\/title>\", res.text)\nif title:\n print(title[0])\nelse:\n print('empty')",
"version": "1.1",
"return_type": "string",
"script_type": "python",
"ps": "If the result is empty or not obtained, output 'empty'",
"create_time": 1668242092,
"is_args": 1,
"args_title": "URL address",
"args_ps": "Please fill in the URL address, such as: https://yakpanel.com"
},
{
"script_id": 89,
"type_id": 5,
"is_baota": 1,
"name": "Retrieve The Response Status Of The Specified URL Address",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Retrieve the response content of the specified URL address\n#@author hwliang(hwl@yakpanel.com)\n#@print string\nimport sys\nimport requests\n\nsys.stdout.reconfigure(encoding='utf-8')\nsys.stderr.reconfigure(encoding='utf-8')\n\nurl = sys.argv[-1]\ntry:\n res = requests.get(url,timeout=30)\n res.encoding = res.apparent_encoding\nexcept Exception as ex:\n print(ex)\n sys.exit(1)\nprint(res.status_code)",
"version": "1.1",
"return_type": "int",
"script_type": "python",
"ps": "Retrieve the response status of the specified URL address",
"create_time": 1668241817,
"is_args": 1,
"args_title": "URL address",
"args_ps": "Please fill in the URL address, such as: https://yakpanel.com"
},
{
"script_id": 88,
"type_id": 5,
"is_baota": 1,
"name": "Retrieve The Response Content Of The Specified URL Address",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Retrieve the response content of the specified URL address\n#@author hwliang(hwl@yakpanel.com)\n#@print string\nimport sys\nimport requests\n\nsys.stdout.reconfigure(encoding='utf-8')\nsys.stderr.reconfigure(encoding='utf-8')\n\nurl = sys.argv[-1]\ntry:\n res = requests.get(url,timeout=30)\n res.encoding = res.apparent_encoding\nexcept Exception as ex:\n print(ex)\n sys.exit(1)\nprint(res.text)",
"version": "1.1",
"return_type": "string",
"script_type": "python",
"ps": "Retrieve the response content of the specified URL address",
"create_time": 1668241548,
"is_args": 1,
"args_title": "URL address",
"args_ps": "Please fill in the URL address, such as: https://yakpanel.com"
},
{
"script_id": 87,
"type_id": 4,
"is_baota": 1,
"name": "Get The Available Disk Capacity Of The Specified Partition",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Retrieve the available disk capacity (in GB) of the/ww partition\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\nimport sys\ndev_path = sys.argv[-1]\ndisk_usage = psutil.disk_usage(dev_path)\nfree_size = disk_usage.free / 1024 / 1024 / 1024\nprint(\"{:.2f}\".format(free_size))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (GB)",
"create_time": 1668241167,
"is_args": 1,
"args_title": "Partition path",
"args_ps": "Please fill in the partition mounting path, such as:/www"
},
{
"script_id": 86,
"type_id": 2,
"is_baota": 1,
"name": "Get The Memory Usage Of PHP",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\nimport os\nimport sys\nos.chdir('/www/server/panel')\nsys.path.insert(0,'class/')\nimport public\nimport psutil\n# PHP Version\nphp_version=sys.argv[-1]\nphp_version = php_version.replace('.','')\n# Process name (required)\nprocess_name = 'php-fpm'\n# Process absolute path, can be None\nbin_file=None\n\n# If binFILE is not None and the specified path does not exist\nif bin_file and not os.path.exists(bin_file):\n print(\"Error: The specified process path does not exist:{}\".format(bin_file))\n print(0)\n sys.exit(1)\n\n# Get process PID\ncmd_line = 'php-fpm: master process (/www/server/php/{}/etc/php-fpm.conf)'.format(php_version)\npid = public.get_process_pid(process_name,bin_file,cmd_line)\nif not pid:\n print(\"Error: Failed to retrieve process PID: {}\".format(process_name))\n print(0)\n sys.exit(1)\n\n# Check if it is a valid PID\nif not public.pid_exists(pid):\n print(0)\n sys.exit(1)\n \nused_total_bytes = 0\n# Retrieve memory information\ntry:\n process = psutil.Process(pid)\n mem_info = process.memory_full_info()\n used_total_bytes += mem_info.uss\nexcept:\n print(0)\n sys.exit(1)\n \nfor mpid in psutil.pids():\n try:\n process = psutil.Process(mpid)\n if process.name() != process_name: continue\n if process.ppid() != pid: continue\n mem_info = process.memory_full_info()\n used_total_bytes += mem_info.uss\n except:\n pass\n \n# unit conversion\nmem_used_size = used_total_bytes / 1024 / 1024\n\n# output\nprint(\"{:.2f}\".format(mem_used_size))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (MB)",
"create_time": 1668240991,
"is_args": 1,
"args_title": "PHP Version",
"args_ps": "Please fill in the PHP version, such as 8.1"
},
{
"script_id": 85,
"type_id": 2,
"is_baota": 1,
"name": "Get The CPU Usage Of PHP",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get the CPU usage of the specified process\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport os\nimport sys\nos.chdir('/www/server/panel')\nsys.path.insert(0,'class/')\nimport public\nimport psutil\nimport threading\n# PHP Version\nphp_version=sys.argv[-1]\nphp_version = php_version.replace('.','')\n\n# Process name (required)\nprocess_name = 'php-fpm'\n# Process absolute path, can be None\nbin_file=\"/www/server/php/{}/sbin/php-fpm\".format(php_version)\n\n# If binFILE is not None and the specified path does not exist\nif bin_file and not os.path.exists(bin_file):\n print(\"Error: The specified process path does not exist: {}\".format(bin_file))\n print(0)\n sys.exit(1)\n\ncpu_count = psutil.cpu_count()\ncpu_percent = 0.00\ndef get_percent(process):\n global cpu_count,cpu_percent\n c = process.cpu_percent(1) / cpu_count\n cpu_percent += c\n \n\n\n# Get CPU usage rate\npid_thread_dict = {}\nfor pid in psutil.pids():\n try:\n process = psutil.Process(pid)\n if process.name() != process_name: continue\n if bin_file and process.exe() != bin_file: continue\n pid_thread_dict[pid] = threading.Thread(target=get_percent,args=(process,))\n pid_thread_dict[pid].start()\n except:\n continue\n\nfor pid in pid_thread_dict.keys():\n pid_thread_dict[pid].join()\n\n# 输出\nprint(\"{:.2f}\".format(cpu_percent))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (%)",
"create_time": 1668240881,
"is_args": 1,
"args_title": "PHP Version",
"args_ps": "Please fill in the PHP version, such as 8.1"
},
{
"script_id": 84,
"type_id": 1,
"is_baota": 1,
"name": "Start PHP Service",
"status": 1,
"author": "yakpanel",
"script": "php_version=\"${1/./}\"\n/etc/init.d/php-fpm-$php_version start",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains done, it indicates success (version number needs to be entered)",
"create_time": 1668240713,
"is_args": 1,
"args_title": "PHP Version",
"args_ps": "Please fill in the PHP version, such as 8.1"
},
{
"script_id": 83,
"type_id": 1,
"is_baota": 1,
"name": "Stop PHP Service",
"status": 1,
"author": "yakpanel",
"script": "php_version=\"${1/./}\"\n/etc/init.d/php-fpm-$php_version stop",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains done, it indicates success (version number needs to be entered)",
"create_time": 1668240680,
"is_args": 1,
"args_title": "PHP Version",
"args_ps": "Please fill in the PHP version, such as 8.1"
},
{
"script_id": 82,
"type_id": 1,
"is_baota": 1,
"name": "Overloading PHP Configuration Files",
"status": 1,
"author": "yakpanel",
"script": "php_version=\"${1/./}\"\n/etc/init.d/php-fpm-$php_version reload",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains done, it indicates success (version number needs to be entered)",
"create_time": 1668240627,
"is_args": 1,
"args_title": "PHP Version",
"args_ps": "Please fill in the PHP version, such as 8.1"
},
{
"script_id": 81,
"type_id": 1,
"is_baota": 1,
"name": "Restart PHP Service",
"status": 1,
"author": "yakpanel",
"script": "php_version=\"${1/./}\"\n/etc/init.d/php-fpm-$php_version restart",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains done, it indicates success (version number needs to be entered)",
"create_time": 1668240442,
"is_args": 1,
"args_title": "PHP Version",
"args_ps": "Please fill in the PHP version, such as 8.1"
},
{
"script_id": 79,
"type_id": 4,
"is_baota": 1,
"name": "Get The Number Of Network Packets Received",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get the number of network packets received(pcs/s)\n#@author hwliang(hwl@yakpanel.com)\n#@print int\nimport psutil\nimport time\nold_netio = psutil.net_io_counters()\ntime.sleep(1)\nnew_netio = psutil.net_io_counters()\npackets_recv = (new_netio.packets_recv - old_netio.packets_recv)\n\nprint(packets_recv)",
"version": "1.0",
"return_type": "int",
"script_type": "python",
"ps": "Unit (pcs/s)",
"create_time": 1668220545,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 78,
"type_id": 4,
"is_baota": 1,
"name": "Obtain The Number Of Network Packets Sent",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Obtain the number of network packets sent(pcs/s)\n#@author hwliang(hwl@yakpanel.com)\n#@print int\nimport psutil\nimport time\nold_netio = psutil.net_io_counters()\ntime.sleep(1)\nnew_netio = psutil.net_io_counters()\npackets_sent = (new_netio.packets_sent - old_netio.packets_sent)\n\nprint(packets_sent)",
"version": "1.0",
"return_type": "int",
"script_type": "python",
"ps": "Unit (pcs/s)",
"create_time": 1668220488,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 77,
"type_id": 4,
"is_baota": 1,
"name": "Obtain Network Downlink Speed",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Obtain network downlink speed(KB/second)\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\nimport time\nold_netio = psutil.net_io_counters()\ntime.sleep(1)\nnew_netio = psutil.net_io_counters()\nbytes_recv = (new_netio.bytes_recv - old_netio.bytes_recv) / 1024\n\nprint(\"{:.2f}\".format(bytes_recv))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (KB/second)",
"create_time": 1668220379,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 76,
"type_id": 4,
"is_baota": 1,
"name": "Obtain Network Uplink Speed",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Obtain the size of upstream traffic(KB/s)\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\nimport time\nold_netio = psutil.net_io_counters()\ntime.sleep(1)\nnew_netio = psutil.net_io_counters()\nbytes_sent = (new_netio.bytes_sent - old_netio.bytes_sent) / 1024\n\nprint(\"{:.2f}\".format(bytes_sent))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (KB/s)",
"create_time": 1668220318,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 75,
"type_id": 4,
"is_baota": 1,
"name": "Get Memory Usage Rate",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get memory usage rate\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\nvirtual_memory = psutil.virtual_memory()\nmemory_percent = 100 * ((virtual_memory.total - (virtual_memory.free + virtual_memory.buffers + virtual_memory.cached)) / virtual_memory.total )\nprint(\"{:.2f}\".format(memory_percent))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (%)",
"create_time": 1668219497,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 74,
"type_id": 4,
"is_baota": 1,
"name": "Retrieve The Size Of Used Memory",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Retrieve the size of used memoryUnit MB\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\nvirtual_memory = psutil.virtual_memory()\nused_size = (virtual_memory.total - (virtual_memory.free + virtual_memory.buffers + virtual_memory.cached)) / 1024 / 1024\nprint(\"{:.2f}\".format(used_size))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (MB)",
"create_time": 1668219428,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 73,
"type_id": 4,
"is_baota": 1,
"name": "Get Available Memory Size",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get available memory sizeUnit MB\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\nvirtual_memory = psutil.virtual_memory()\nfree_size = (virtual_memory.free + virtual_memory.buffers + virtual_memory.cached) / 1024 / 1024\nprint(\"{:.2f}\".format(free_size))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (MB)",
"create_time": 1668219298,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 72,
"type_id": 4,
"is_baota": 1,
"name": "Get The Size Of The Used Swap",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get the size of the used swapUnit MB\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\nswap_memory = psutil.swap_memory()\nswap_used = swap_memory.used / 1024 / 1024\nprint(\"{:.2f}\".format(swap_used))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (MB)",
"create_time": 1668219039,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 71,
"type_id": 4,
"is_baota": 1,
"name": "Retrieve The Available Disk Capacity Of The/ww Partition",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Retrieve the available disk capacity of the/ww partitionUnit GB\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\ndisk_usage = psutil.disk_usage('/www')\nfree_size = disk_usage.free / 1024 / 1024 / 1024\nprint(\"{:.2f}\".format(free_size))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (GB)",
"create_time": 1668218898,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 70,
"type_id": 4,
"is_baota": 1,
"name": "Retrieve The Available Disk Capacity Of The Root Partition (/)",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Retrieve the available disk capacity of the root partition (/)Unit GB\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\ndisk_usage = psutil.disk_usage('/')\nfree_size = disk_usage.free / 1024 / 1024 / 1024\nprint(\"{:.2f}\".format(free_size))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (GB)",
"create_time": 1668218820,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 69,
"type_id": 4,
"is_baota": 1,
"name": "Get The Number Of Network Connections",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get the number of network connections\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\nprint(len(psutil.net_connections()))",
"version": "1.0",
"return_type": "int",
"script_type": "python",
"ps": "Get the number of network connections",
"create_time": 1668218591,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 68,
"type_id": 4,
"is_baota": 1,
"name": "Get CPU Usage Rate",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get CPU usage rate\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport psutil\ncpu_count = psutil.cpu_count()\ncpu_percent = psutil.cpu_percent(1) / cpu_count\nprint(\"{:.2f}\".format(cpu_percent))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Get CPU usage rate per second(%)",
"create_time": 1668218234,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 67,
"type_id": 4,
"is_baota": 1,
"name": "Get The Number Of System Processes",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get the number of system processes\n#@author hwliang(hwl@yakpanel.com)\n#@print int\nimport psutil\npids = psutil.pids()\nprint(len(pids))",
"version": "1.0",
"return_type": "int",
"script_type": "python",
"ps": "Get the number of running processes (units)",
"create_time": 1668218094,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 66,
"type_id": 4,
"is_baota": 1,
"name": "Obtain The Average Load Over The Past 15 Minutes",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Obtain the average load over the past 15 minutes\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport os\nload_average = os.getloadavg()\nprint(load_average[2])",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "load averageThe average load of the system in the past 15 minutes",
"create_time": 1668217975,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 65,
"type_id": 4,
"is_baota": 1,
"name": "Get The Average Load Over The Past 5 Minutes",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get the average load over the past 5 minutes\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport os\nload_average = os.getloadavg()\nprint(load_average[1])",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "load averageThe average load of the system in the past 5 minutes",
"create_time": 1668217953,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 64,
"type_id": 4,
"is_baota": 1,
"name": "Get The Average Load In The Last Minute",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get the average load in the last minute\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport os\nload_average = os.getloadavg()\nprint(load_average[0])",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "load averageThe average load of the system in the past minute",
"create_time": 1668217869,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 60,
"type_id": 2,
"is_baota": 1,
"name": "Get The CPU Usage Of Apache",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\n#@name Get the CPU usage of the specified process\n#@author hwliang(hwl@yakpanel.com)\n#@print float\nimport os\nimport sys\nos.chdir('/www/server/panel')\nsys.path.insert(0,'class/')\nimport public\nimport psutil\nimport threading\n\n# Process name (required)\nprocess_name = 'httpd'\n# Process absolute path, can be None\nbin_file=\"/www/server/apache/bin/httpd\"\n\n# If binFILE is not None and the specified path does not exist\nif bin_file and not os.path.exists(bin_file):\n print(\"Error: The specified process path does not exist: {}\".format(bin_file))\n print(0)\n sys.exit(1)\n\ncpu_count = psutil.cpu_count()\ncpu_percent = 0.00\ndef get_percent(process):\n global cpu_count,cpu_percent\n c = process.cpu_percent(1) / cpu_count\n cpu_percent += c\n \n\n\n# Get CPU usage rate\npid_thread_dict = {}\nfor pid in psutil.pids():\n try:\n process = psutil.Process(pid)\n if process.name() != process_name: continue\n if bin_file and process.exe() != bin_file: continue\n pid_thread_dict[pid] = threading.Thread(target=get_percent,args=(process,))\n pid_thread_dict[pid].start()\n except:\n continue\n\nfor pid in pid_thread_dict.keys():\n pid_thread_dict[pid].join()\n\n# 输出\nprint(\"{:.2f}\".format(cpu_percent))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (%)",
"create_time": 1668157345,
"is_args": 0,
"args_title": "",
"args_ps": ""
},
{
"script_id": 59,
"type_id": 2,
"is_baota": 1,
"name": "Get The CPU Usage Of Nginx",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\nimport os\nimport sys\nos.chdir('/www/server/panel')\nsys.path.insert(0,'class/')\nimport public\nimport psutil\nimport threading\n\n# Process name (required)\nprocess_name = 'nginx'\n# Process absolute path, can be None\nbin_file=\"/www/server/nginx/sbin/nginx\"\n\n# If binFILE is not None and the specified path does not exist\nif bin_file and not os.path.exists(bin_file):\n print(\"Error: The specified process path does not exist: {}\".format(bin_file))\n print(0)\n sys.exit(1)\n\ncpu_count = psutil.cpu_count()\ncpu_percent = 0.00\ndef get_percent(process):\n global cpu_count,cpu_percent\n c = process.cpu_percent(1) / cpu_count\n cpu_percent += c\n \n\n\n# Get CPU usage rate\npid_thread_dict = {}\nfor pid in psutil.pids():\n try:\n process = psutil.Process(pid)\n if process.name() != process_name: continue\n if bin_file and process.exe() != bin_file: continue\n pid_thread_dict[pid] = threading.Thread(target=get_percent,args=(process,))\n pid_thread_dict[pid].start()\n except:\n continue\n\nfor pid in pid_thread_dict.keys():\n pid_thread_dict[pid].join()\n\n# output\nprint(\"{:.2f}\".format(cpu_percent))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (%)",
"create_time": 1668156750,
"is_args": 0,
"args_title": "",
"args_ps": ""
},
{
"script_id": 58,
"type_id": 2,
"is_baota": 1,
"name": "Get The CPU Usage Of MySQL",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\nimport os\nimport sys\nos.chdir('/www/server/panel')\nsys.path.insert(0,'class/')\nimport public\nimport psutil\nimport threading\n\n# Process name (required)\nprocess_name = 'mysqld'\n# Process absolute path, can be None\nbin_file=\"/www/server/mysql/bin/mysqld\"\n\n# If binFILE is not None and the specified path does not exist\nif bin_file and not os.path.exists(bin_file):\n print(\"Error: The specified process path does not exist: {}\".format(bin_file))\n print(0)\n sys.exit(1)\n\ncpu_count = psutil.cpu_count()\ncpu_percent = 0.00\ndef get_percent(process):\n global cpu_count,cpu_percent\n c = process.cpu_percent(1) / cpu_count\n cpu_percent += c\n\n\n# Get CPU usage rate\npid_thread_dict = {}\nfor pid in psutil.pids():\n try:\n process = psutil.Process(pid)\n if process.name() != process_name: continue\n if bin_file and process.exe() != bin_file: continue\n pid_thread_dict[pid] = threading.Thread(target=get_percent,args=(process,))\n pid_thread_dict[pid].start()\n except:\n continue\n\nfor pid in pid_thread_dict.keys():\n pid_thread_dict[pid].join()\n\n# output\nprint(\"{:.2f}\".format(cpu_percent))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Only mysqld processUnit (%)",
"create_time": 1668155455,
"is_args": 0,
"args_title": "",
"args_ps": ""
},
{
"script_id": 54,
"type_id": 2,
"is_baota": 1,
"name": "Get Apache Memory Usage",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\nimport os\nimport sys\nos.chdir('/www/server/panel')\nsys.path.insert(0,'class/')\nimport public\nimport psutil\n\n# Process name (required)\nprocess_name = 'httpd'\n# Process absolute path, can be None\nbin_file=\"/www/server/apache/bin/httpd\"\n\n# If binFILE is not None and the specified path does not exist\nif bin_file and not os.path.exists(bin_file):\n print(\"Error: The specified process path does not exist: {}\".format(bin_file))\n print(0)\n sys.exit(1)\n\n# Get process PID\npid = public.get_process_pid(process_name,bin_file)\nif not pid:\n print(\"Error: Failed to retrieve process PID: {}\".format(process_name))\n print(0)\n sys.exit(1)\n\n# Check if it is a valid PID\nif not public.pid_exists(pid):\n print(0)\n sys.exit(1)\n \n# Retrieve memory information\ntry:\n process = psutil.Process(pid)\n mem_info = process.memory_full_info()\nexcept:\n print(0)\n sys.exit(1)\n \n# unit conversion\nmem_used_size = mem_info.uss / 1024 / 1024\n\n# output\nprint(\"{:.2f}\".format(mem_used_size))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (MB)",
"create_time": 1668150591,
"is_args": 0,
"args_title": "",
"args_ps": ""
},
{
"script_id": 53,
"type_id": 2,
"is_baota": 1,
"name": "Get Nginx Memory Usage",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\nimport os\nimport sys\nos.chdir('/www/server/panel')\nsys.path.insert(0,'class/')\nimport public\nimport psutil\n\n# Process name (required)\nprocess_name = 'nginx'\n# Process absolute path, can be None\nbin_file=\"/www/server/nginx/sbin/nginx\"\n\n# If binFILE is not None and the specified path does not exist\nif bin_file and not os.path.exists(bin_file):\n print(\"Error: The specified process path does not exist: {}\".format(bin_file))\n print(0)\n sys.exit(1)\n\n# Get process PID\npid = public.get_process_pid(process_name,bin_file)\nif not pid:\n print(\"Error: Failed to retrieve process PID: {}\".format(process_name))\n print(0)\n sys.exit(1)\n\n# Check if it is a valid PID\nif not public.pid_exists(pid):\n print(0)\n sys.exit(1)\n \n# Retrieve memory information\ntry:\n process = psutil.Process(pid)\n mem_info = process.memory_full_info()\nexcept:\n print(0)\n sys.exit(1)\n \n# unit conversion\nmem_used_size = mem_info.uss / 1024 / 1024\n\n# output\nprint(\"{:.2f}\".format(mem_used_size))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Unit (MB)",
"create_time": 1668150492,
"is_args": 0,
"args_title": "",
"args_ps": ""
},
{
"script_id": 52,
"type_id": 2,
"is_baota": 1,
"name": "Get MySQL Memory Usage",
"status": 1,
"author": "yakpanel",
"script": "#coding: utf-8\nimport os\nimport sys\nos.chdir('/www/server/panel')\nsys.path.insert(0,'class/')\nimport public\nimport psutil\n\n# Process name (required)\nprocess_name = 'mysqld'\n# Process absolute path, can be None\nbin_file=\"/www/server/mysql/bin/mysqld\"\n\n# If binFILE is not None and the specified path does not exist\nif bin_file and not os.path.exists(bin_file):\n print(\"Error: The specified process path does not exist: {}\".format(bin_file))\n print(0)\n sys.exit(1)\n\n# Get process PID\npid = public.get_process_pid(process_name,bin_file)\nif not pid:\n print(\"Error: Failed to retrieve process PID: {}\".format(process_name))\n print(0)\n sys.exit(1)\n\n# Check if it is a valid PID\nif not public.pid_exists(pid):\n print(0)\n sys.exit(1)\n \n# Retrieve memory information\ntry:\n process = psutil.Process(pid)\n mem_info = process.memory_full_info()\nexcept:\n print(0)\n sys.exit(1)\n \n# unit conversion\nmem_used_size = mem_info.uss / 1024 / 1024\n\n# output\nprint(\"{:.2f}\".format(mem_used_size))",
"version": "1.0",
"return_type": "float",
"script_type": "python",
"ps": "Only mysqld processUnit (MB)",
"create_time": 1668149446,
"is_args": 0,
"args_title": "",
"args_ps": ""
},
{
"script_id": 49,
"type_id": 1,
"is_baota": 1,
"name": "Start Nginx",
"status": 1,
"author": "yakpanel",
"script": "/etc/init.d/nginx start",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains done, it indicates success",
"create_time": 1668044622,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 48,
"type_id": 1,
"is_baota": 1,
"name": "Start MySQL",
"status": 1,
"author": "yakpanel",
"script": "/etc/init.d/mysqld start",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains Starting, it indicates success",
"create_time": 1668044553,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 44,
"type_id": 1,
"is_baota": 1,
"name": "Reload Nginx",
"status": 1,
"author": "yakpanel",
"script": "/etc/init.d/nginx reload",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains done, it indicates success",
"create_time": 1668044290,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 43,
"type_id": 1,
"is_baota": 1,
"name": "Reload MySQL",
"status": 1,
"author": "yakpanel",
"script": "/etc/init.d/mysqld reload",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains Reloading, it indicates success",
"create_time": 1668044127,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 39,
"type_id": 1,
"is_baota": 1,
"name": "Get Nginx Status",
"status": 1,
"author": "yakpanel",
"script": "/etc/init.d/nginx status",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains' stopped ', it means it has stopped",
"create_time": 1668043943,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 38,
"type_id": 1,
"is_baota": 1,
"name": "Get MySQL Status",
"status": 1,
"author": "yakpanel",
"script": "/etc/init.d/mysqld status",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains' dead ', it means it has stopped",
"create_time": 1668043876,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 19,
"type_id": 1,
"is_baota": 1,
"name": "Restart MySQL",
"status": 1,
"author": "yakpanel",
"script": "/etc/init.d/mysqld restart",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains done, it indicates success",
"create_time": 1667983888,
"is_args": 0,
"args_title": null,
"args_ps": null
},
{
"script_id": 18,
"type_id": 1,
"is_baota": 1,
"name": "Restart Nginx",
"status": 1,
"author": "yakpanel",
"script": "/etc/init.d/nginx restart",
"version": "1.0",
"return_type": "string",
"script_type": "bash",
"ps": "If the output contains done, it indicates success",
"create_time": 1667983870,
"is_args": 0,
"args_title": null,
"args_ps": null
}
]

876
config/databases.json Normal file
View File

@@ -0,0 +1,876 @@
{
"ssl_data.db": {
"ssl_info": {
"sql": "CREATE TABLE IF NOT EXISTS 'ssl_info' ('id' INTEGER PRIMARY KEY AUTOINCREMENT,'group_id' INTEGER NOT NULL DEFAULT 0,'hash' TEXT NOT NULL UNIQUE,'path' TEXT NOT NULL,'dns' TEXT NOT NULL,'subject' TEXT NOT NULL,'info' TEXT NOT NULL DEFAULT '','cloud_id' INTEGER NOT NULL DEFAULT -1,'not_after' TEXT NOT NULL,'use_for_panel' INTEGER NOT NULL DEFAULT 0,'use_for_site' TEXT NOT NULL DEFAULT '[]','auth_info' TEXT NOT NULL DEFAULT '{}','create_time' INTEGER NOT NULL DEFAULT (strftime('%s')), 'ps' TEXT NOT NULL DEFAULT '');",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "hash", "TEXT", 0, "''", 0],
[2, "path", "TEXT", 0, "''", 0],
[3, "dns", "TEXT", 0, "''", 0],
[4, "subject", "TEXT", 0, "''", 0],
[5, "info", "TEXT", 0, "''", 0],
[6, "cloud_id", "INTEGER", 0, "-1", 0],
[7, "not_after", "TEXT", 0, "''", 0],
[8, "use_for_panel", "INTEGER", 0, "0", 0],
[9, "use_for_site", "TEXT", 0, "'[]'", 0],
[10, "auth_info", "TEXT", 0, "'{}'", 0],
[11, "create_time", "TEXT", 0, "strftime('%s')", 0],
[12, "ps", "TEXT", 0, "''", 0],
[13, "group_id", "INTEGER", 0, 0, 0]
]
}
},
"panel.db": {
"config": {
"sql": "CREATE TABLE `config` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `webserver` TEXT,\n `backup_path` TEXT,\n `sites_path` TEXT,\n `status` INTEGER,\n `mysql_root` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "webserver", "TEXT", 0, "''", 0],
[2, "backup_path", "TEXT", 0, "''", 0],
[3, "sites_path", "TEXT", 0, "''", 0],
[4, "status", "INTEGER", 0, 0, 0],
[5, "mysql_root", "TEXT", 0, "''", 0]
]
},
"users": {
"sql": "CREATE TABLE `users` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `username` TEXT,\n `password` TEXT,\n `login_ip` TEXT,\n `login_time` TEXT,\n `phone` TEXT,\n `email` TEXT,\n `salt` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "username", "TEXT", 0, "''", 0],
[2, "password", "TEXT", 0, "''", 0],
[3, "login_ip", "TEXT", 0, "''", 0],
[4, "login_time", "TEXT", 0, "''", 0],
[5, "phone", "TEXT", 0, "''", 0],
[6, "email", "TEXT", 0, "''", 0],
[7, "salt", "TEXT", 0, "''", 0]
]
}
},
"site.db": {
"sites": {
"sql": "CREATE TABLE `sites` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `name` TEXT,\n `path` TEXT,\n `status` TEXT,\n `index` TEXT,\n `ps` TEXT,\n `addtime` TEXT,\n `type_id` integer DEFAULT 0,\n `edate` integer DEFAULT '0000-00-00',\n `project_type` STRING DEFAULT 'PHP',\n `project_config` STRING DEFAULT '{}',\n `rname` text DEFAULT '',\n `stop` text DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "TEXT", 0, "''", 0],
[2, "path", "TEXT", 0, "''", 0],
[3, "status", "TEXT", 0, "''", 0],
[4, "index", "TEXT", 0, "''", 0],
[5, "ps", "TEXT", 0, "''", 0],
[6, "addtime", "TEXT", 0, "''", 0],
[7, "type_id", "integer", 0, "0", 0],
[8, "edate", "integer", 0, "'0000-00-00'", 0],
[9, "project_type", "STRING", 0, "'PHP'", 0],
[10, "project_config", "STRING", 0, "'{}'", 0],
[11, "rname", "text", 0, "''", 0],
[12, "stop", "text", 0, "''", 0]
]
},
"site_types": {
"sql": "CREATE TABLE `site_types` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `name` REAL,\n `ps` REAL\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "REAL", 0, 0, 0],
[2, "ps", "REAL", 0, 0, 0]
]
},
"domain": {
"sql": "CREATE TABLE `domain` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `pid` INTEGER,\n `name` TEXT,\n `port` INTEGER,\n `addtime` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "pid", "INTEGER", 0, 0, 0],
[2, "name", "TEXT", 0, "''", 0],
[3, "port", "INTEGER", 0, 0, 0],
[4, "addtime", "TEXT", 0, "''", 0]
]
},
"binding": {
"sql": "CREATE TABLE `binding` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `pid` INTEGER,\n `domain` TEXT,\n `path` TEXT,\n `port` INTEGER,\n `addtime` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "pid", "INTEGER", 0, 0, 0],
[2, "domain", "TEXT", 0, "''", 0],
[3, "path", "TEXT", 0, "''", 0],
[4, "port", "INTEGER", 0, 0, 0],
[5, "addtime", "TEXT", 0, "''", 0]
]
},
"app_package": {
"sql": "CREATE TABLE `app_package` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `pid` INTEGER,\n `site_name` TEXT,\n `app_name` TEXT,\n `app_version` TEXT,\n `package_name` TEXT,\n `package_path` TEXT,\n `size` TEXT,\n `addtime` TEXT,\n `update_log` TEXT,\n `php_versions` TEXT,\n `php_libs` TEXT,\n `php_functions` TEXT,\n `mysql_versions` TEXT,\n `db_character` TEXT,\n `init_sql` TEXT,\n `db_config_file` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "pid", "INTEGER", 0, 0, 0],
[2, "site_name", "TEXT", 0, "''", 0],
[3, "app_name", "TEXT", 0, "''", 0],
[4, "app_version", "TEXT", 0, "''", 0],
[5, "package_name", "TEXT", 0, "''", 0],
[6, "package_path", "TEXT", 0, "''", 0],
[7, "size", "TEXT", 0, "''", 0],
[8, "addtime", "TEXT", 0, "''", 0],
[9, "update_log", "TEXT", 0, "''", 0],
[10, "php_versions", "TEXT", 0, "''", 0],
[11, "php_libs", "TEXT", 0, "''", 0],
[12, "php_functions", "TEXT", 0, "''", 0],
[13, "mysql_versions", "TEXT", 0, "''", 0],
[14, "db_character", "TEXT", 0, "''", 0],
[15, "init_sql", "TEXT", 0, "''", 0],
[16, "db_config_file", "TEXT", 0, "''", 0]
]
},
"app_package_upload": {
"sql": "CREATE TABLE `app_package_upload` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `app_name` TEXT,\n `app_version` TEXT,\n `package_path` TEXT,\n `size` TEXT,\n `addtime` TEXT,\n `update_log` TEXT,\n `php_versions` TEXT,\n `php_libs` TEXT,\n `php_functions` TEXT,\n `mysql_versions` TEXT,\n `db_character` TEXT,\n `init_sql` TEXT,\n `db_config_file` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "app_name", "TEXT", 0, "''", 0],
[2, "app_version", "TEXT", 0, "''", 0],
[3, "package_path", "TEXT", 0, "''", 0],
[4, "size", "TEXT", 0, "''", 0],
[5, "addtime", "TEXT", 0, "''", 0],
[6, "update_log", "TEXT", 0, "''", 0],
[7, "php_versions", "TEXT", 0, "''", 0],
[8, "php_libs", "TEXT", 0, "''", 0],
[9, "php_functions", "TEXT", 0, "''", 0],
[10, "mysql_versions", "TEXT", 0, "''", 0],
[11, "db_character", "TEXT", 0, "''", 0],
[12, "init_sql", "TEXT", 0, "''", 0],
[13, "db_config_file", "TEXT", 0, "''", 0]
]
}
},
"ftp.db": {
"ftps": {
"sql": "CREATE TABLE `ftps` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `pid` INTEGER,\n `name` TEXT,\n `password` TEXT,\n `path` TEXT,\n `status` TEXT,\n `ps` TEXT,\n `addtime` TEXT,\n `type_id` INTEGER\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "pid", "INTEGER", 0, 0, 0],
[2, "name", "TEXT", 0, "''", 0],
[3, "password", "TEXT", 0, "''", 0],
[4, "path", "TEXT", 0, "''", 0],
[5, "status", "TEXT", 0, "''", 0],
[6, "ps", "TEXT", 0, "''", 0],
[7, "addtime", "TEXT", 0, "''", 0],
[8, "type_id", "INTEGER", 0, 0, 0]
]
}
},
"database.db": {
"database_servers": {
"sql": "CREATE TABLE `database_servers` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `db_host` REAL,\n `db_port` REAL,\n `db_user` INTEGER,\n `db_password` INTEGER,\n `ps` REAL,\n `addtime` INTEGER,\n `db_type` REAL DEFAULT 'mysql',\n `type` STRING DEFAULT 'MySQL'\n )",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "db_host", "REAL", 0, 0, 0],
[2, "db_port", "REAL", 0, 0, 0],
[3, "db_user", "INTEGER", 0, 0, 0],
[4, "db_password", "INTEGER", 0, 0, 0],
[5, "ps", "REAL", 0, 0, 0],
[6, "addtime", "INTEGER", 0, 0, 0],
[7, "db_type", "REAL", 0, "'mysql'", 0],
[8, "type", "STRING", 0, "'MySQL'", 0]
]
},
"databases": {
"sql": "CREATE TABLE `databases` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `pid` INTEGER,\n `name` TEXT,\n `username` TEXT,\n `password` TEXT,\n `accept` TEXT,\n `ps` TEXT,\n `addtime` TEXT,\n `db_type` integer DEFAULT '0',\n `conn_config` STRING DEFAULT '{}',\n `sid` integer DEFAULT 0,\n `type` TEXT DEFAULT 'MySQL',\n `type_id` INTEGER\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "pid", "INTEGER", 0, 0, 0],
[2, "name", "TEXT", 0, "''", 0],
[3, "username", "TEXT", 0, "''", 0],
[4, "password", "TEXT", 0, "''", 0],
[5, "accept", "TEXT", 0, "''", 0],
[6, "ps", "TEXT", 0, "''", 0],
[7, "addtime", "TEXT", 0, "''", 0],
[8, "db_type", "integer", 0, "'0'", 0],
[9, "conn_config", "STRING", 0, "'{}'", 0],
[10, "sid", "integer", 0, "0", 0],
[11, "type", "TEXT", 0, "'MySQL'", 0],
[12, "type_id", "INTEGER", 0, 0, 0]
]
},
"mysql_increment_settings": {
"sql": "CREATE TABLE `mysql_increment_settings` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `cron_id` INTEGER,\n `db_name` TEXT DEFAULT '',\n `tb_name` TEXT DEFAULT '',\n `zip_password` TEXT DEFAULT '',\n `last_backup_time` TEXT DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "cron_id", "INTEGER", 0, 0, 0],
[2, "db_name", "TEXT", 0, "''", 0],
[3, "tb_name", "TEXT", 0, "''", 0],
[4, "zip_password", "TEXT", 0, "''", 0],
[5, "last_backup_time", "TEXT", 0, "''", 0]
]
},
"mysql_increment_backup": {
"sql": "CREATE TABLE `mysql_increment_backup` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `cron_id` INTEGER,\n `size` INTEGER DEFAULT 0,\n `type` INTEGER DEFAULT 0,\n `addtime` TEXT DEFAULT '',\n `name` TEXT DEFAULT '',\n `localhost` TEXT DEFAULT '',\n `ftp` TEXT DEFAULT '',\n `alioss` TEXT DEFAULT '',\n `txcos` TEXT DEFAULT '',\n `qiniu` TEXT DEFAULT '',\n `aws_s3` TEXT DEFAULT '',\n `upyun` TEXT DEFAULT '',\n `obs` TEXT DEFAULT '',\n `bos` TEXT DEFAULT '',\n `gcloud_storage` TEXT DEFAULT '',\n `gdrive` TEXT DEFAULT '',\n `msonedrive` TEXT DEFAULT '',\n `jdcloud` TEXT DEFAULT '',\n `tianyiyun` TEXT DEFAULT '',\n `webdav` TEXT DEFAULT '',\n `minio` TEXT DEFAULT '',\n `dogecloud` TEXT DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "cron_id", "INTEGER", 0, 0, 0],
[2, "size", "INTEGER", 0, "0", 0],
[3, "type", "INTEGER", 0, "0", 0],
[4, "addtime", "TEXT", 0, "''", 0],
[5, "name", "TEXT", 0, "''", 0],
[6, "localhost", "TEXT", 0, "''", 0],
[7, "ftp", "TEXT", 0, "''", 0],
[8, "alioss", "TEXT", 0, "''", 0],
[9, "txcos", "TEXT", 0, "''", 0],
[10, "qiniu", "TEXT", 0, "''", 0],
[11, "aws_s3", "TEXT", 0, "''", 0],
[12, "upyun", "TEXT", 0, "''", 0],
[13, "obs", "TEXT", 0, "''", 0],
[14, "bos", "TEXT", 0, "''", 0],
[15, "gcloud_storage", "TEXT", 0, "''", 0],
[16, "gdrive", "TEXT", 0, "''", 0],
[17, "msonedrive", "TEXT", 0, "''", 0],
[18, "jdcloud", "TEXT", 0, "''", 0],
[19, "tianyiyun", "TEXT", 0, "''", 0],
[20, "webdav", "TEXT", 0, "''", 0],
[21, "minio", "TEXT", 0, "''", 0],
[22, "dogecloud", "TEXT", 0, "''", 0]
]
}
},
"docker.db": {
"dk_container_remark": {
"sql": "CREATE TABLE `dk_container_remark` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `container_id` TEXT,\n `container_name` TEXT,\n `remark` TEXT,\n `addtime` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "container_id", "TEXT", 0, "''", 0],
[2, "container_name", "TEXT", 0, "''", 0],
[3, "remark", "TEXT", 0, "''", 0],
[4, "addtime", "TEXT", 0, "''", 0]
]
},
"dk_sites": {
"sql": "CREATE TABLE `dk_sites` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `name` TEXT,\n `path` TEXT,\n `status` TEXT DEFAULT 1,\n `ps` TEXT,\n `addtime` TEXT,\n `type_id` integer DEFAULT 111,\n `edate` integer DEFAULT '0000-00-00',\n `project_type` STRING DEFAULT 'dk_proxy',\n `container_id` TEXT DEFAULT '',\n `container_name` TEXT DEFAULT '',\n `container_port` TEXT DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "TEXT", 0, "''", 0],
[2, "path", "TEXT", 0, "''", 0],
[3, "status", "TEXT", 0, "1", 0],
[4, "ps", "TEXT", 0, "''", 0],
[5, "addtime", "TEXT", 0, "''", 0],
[6, "type_id", "integer", 0, "111", 0],
[7, "edate", "integer", 0, "'0000-00-00'", 0],
[8, "project_type", "STRING", 0, "'dk_proxy'", 0],
[9, "container_id", "TEXT", 0, "''", 0],
[10, "container_name", "TEXT", 0, "''", 0],
[11, "container_port", "TEXT", 0, "''", 0]
]
},
"dk_domain": {
"sql": "CREATE TABLE `dk_domain` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `pid` INTEGER,\n `name` TEXT,\n `addtime` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "pid", "INTEGER", 0, 0, 0],
[2, "name", "TEXT", 0, "''", 0],
[3, "addtime", "TEXT", 0, "''", 0]
]
},
"dk_backup": {
"sql": "CREATE TABLE `dk_backup` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `type` INTEGER,\n `name` TEXT,\n `container_id` TEXT,\n `container_name` TEXT,\n `filename` TEXT,\n `size` INTEGER,\n `addtime` TEXT,\n`ps` STRING DEFAULT '\u65e0',\n`cron_id` INTEGER DEFAULT 0\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "type", "INTEGER", 0, 0, 0],
[2, "name", "TEXT", 0, "''", 0],
[3, "container_id", "TEXT", 0, "''", 0],
[4, "container_name", "TEXT", 0, "''", 0],
[5, "filename", "TEXT", 0, "''", 0],
[6, "size", "INTEGER", 0, 0, 0],
[7, "addtime", "TEXT", 0, "''", 0],
[8, "ps", "STRING", 0, "'\u65e0'", 0],
[9, "cron_id", "INTEGER", 0, "0", 0]
],
"comment": {
"table": "容器备份表",
"type": {
"ps": "备份类型",
"0": "容器备份",
"1": "镜像备份",
"2": "容器日志备份",
"3": "容器目录或文件备份"
},
"name": "备份名称",
"container_id": "容器ID",
"container_name": "容器名",
"filename": "备份文件名",
"size": "备份文件大小",
"addtime": "备份时间",
"ps": "备注",
"cron_id": "计划任务ID"
}
},
"container": {
"sql": "CREATE TABLE `container` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `cpu_limit` VARCHAR DEFAULT (1),\n `container_name` VARCHAR DEFAULT ''\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "cpu_limit", "VARCHAR", 0, "1", 0],
[2, "container_name", "VARCHAR", 0, "''", 0]
]
},
"container_count": {
"sql": "CREATE TABLE `container_count` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `container_count` INTEGER,\n `time` INTEGER\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "container_count", "INTEGER", 0, 0, 0],
[2, "time", "INTEGER", 0, 0, 0]
]
},
"cpu_stats": {
"sql": "CREATE TABLE `cpu_stats` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `time` INTEGER, \n `cpu_usage` VARCHAR,\n `online_cpus` INT,\n `container_id` VARCHAR\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "time", "INTEGER", 0, 0, 0],
[2, "cpu_usage", "VARCHAR", 0, "''", 0],
[3, "online_cpus", "INT", 0, 0, 0],
[4, "container_id", "VARCHAR", 0, "''", 0]
]
},
"hosts": {
"sql": "CREATE TABLE `hosts` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `url` VARCHAR,\n `remark` VARCHAR DEFAULT (''),\n `time` INTEGER\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "url", "VARCHAR", 0, "''", 0],
[2, "remark", "VARCHAR", 0, "''", 0],
[3, "time", "INTEGER", 0, 0, 0]
]
},
"image_infos": {
"sql": "CREATE TABLE `image_infos` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `num` INTEGER,\n `size` INTEGER,\n `time` INTEGER\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "num", "INTEGER", 0, 0, 0],
[2, "size", "INTEGER", 0, 0, 0],
[3, "time", "INTEGER", 0, 0, 0]
]
},
"io_stats": {
"sql": "CREATE TABLE `io_stats` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `container_id` VARCHAR,\n `time` VARCHAR,\n `read_total` INTEGER,\n `write_total` INTEGER\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "container_id", "VARCHAR", 0, "''", 0],
[2, "time", "VARCHAR", 0, "''", 0],
[3, "read_total", "INTEGER", 0, 0, 0],
[4, "write_total", "INTEGER", 0, 0, 0]
]
},
"mem_stats": {
"sql": "CREATE TABLE `mem_stats` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `mem_limit` VARCHAR,\n `cache` VARCHAR,\n `usage` VARCHAR,\n `usage_total` VARCHAR,\n `container_id` VARCHAR,\n `time` INTEGER\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "mem_limit", "VARCHAR", 0, "''", 0],
[2, "cache", "VARCHAR", 0, "''", 0],
[3, "usage", "VARCHAR", 0, "''", 0],
[4, "usage_total", "VARCHAR", 0, "''", 0],
[5, "container_id", "VARCHAR", 0, "''", 0],
[6, "time", "INTEGER", 0, 0, 0]
]
},
"net_stats": {
"sql": "CREATE TABLE `net_stats` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `container_id` INTEGER,\n `rx_total` INTEGER,\n `tx_total` INTEGER,\n `rx` INTEGER,\n `tx` INTEGER,\n `time` VARCHAR\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "container_id", "INTEGER", 0, 0, 0],
[2, "rx_total", "INTEGER", 0, 0, 0],
[3, "tx_total", "INTEGER", 0, 0, 0],
[4, "rx", "INTEGER", 0, 0, 0],
[5, "tx", "INTEGER", 0, 0, 0],
[6, "time", "VARCHAR", 0, "''", 0]
]
},
"registry": {
"sql": "CREATE TABLE `registry` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `url` VARCHAR,\n `username` VARCHAR DEFAULT (''),\n `password` VARCHAR DEFAULT (''),\n `name` VARCHAR,\n `namespace` VARCHAR,\n `remark` VARCHAR DEFAULT (''),\n `reg_name` VARCHAR DEFAULT ('')\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "url", "VARCHAR", 0, "''", 0],
[2, "username", "VARCHAR", 0, "''", 0],
[3, "password", "VARCHAR", 0, "''", 0],
[4, "name", "VARCHAR", 0, "''", 0],
[5, "namespace", "VARCHAR", 0, "''", 0],
[6, "remark", "VARCHAR", 0, "''", 0],
[7, "reg_name", "VARCHAR", 0, "''", 0]
]
},
"stacks": {
"sql": "CREATE TABLE `stacks` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `name` VARCHAR UNIQUE,\n `status` VARCHAR,\n `path` VARCHAR,\n `template_id` INTEGER,\n `time` INTEGER,\n `remark` VARCHAR DEFAULT ('')\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "VARCHAR", 0, "''", 0],
[2, "status", "VARCHAR", 0, "''", 0],
[3, "path", "VARCHAR", 0, "''", 0],
[4, "template_id", "INTEGER", 0, 0, 0],
[5, "time", "INTEGER", 0, 0, 0],
[6, "remark", "VARCHAR", 0, "''", 0]
]
},
"templates": {
"sql": "CREATE TABLE `templates` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `path` VARCHAR,\n `name` VARCHAR UNIQUE,\n `remark` VARCHAR DEFAULT (''),\n `add_in_path` INTEGER\n);",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "path", "VARCHAR", 0, "''", 0],
[2, "name", "VARCHAR", 0, "''", 0],
[3, "remark", "VARCHAR", 0, "''", 0],
[4, "add_in_path", "INTEGER", 0, 0, 0]
]
}
},
"firewall.db": {
"firewall": {
"sql": "CREATE TABLE `firewall` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `port` TEXT,\n `ps` TEXT,\n `addtime` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "port", "TEXT", 0, "''", 0],
[2, "ps", "TEXT", 0, "''", 0],
[3, "addtime", "TEXT", 0, "''", 0]
]
},
"firewall_country": {
"sql": "CREATE TABLE `firewall_country` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `types` TEXT,\n `country` TEXT DEFAULT '',\n `brief` TEXT DEFAULT '',\n `addtime` TEXT DEFAULT '',\n `ports` TEXT DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "types", "TEXT", 0, "''", 0],
[2, "country", "TEXT", 0, "''", 0],
[3, "brief", "TEXT", 0, "''", 0],
[4, "addtime", "TEXT", 0, "''", 0],
[5, "ports", "TEXT", 0, "''", 0]
]
},
"firewall_domain": {
"sql": "CREATE TABLE `firewall_domain` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `types` TEXT,\n `domain` TEXT,\n `domain_total` TEXT,\n `port` TEXT,\n `sid` int DEFAULT 0,\n `address` TEXT DEFAULT '',\n `brief` TEXT DEFAULT '',\n `protocol` TEXT DEFAULT '',\n `addtime` TEXT DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "types", "TEXT", 0, "''", 0],
[2, "domain", "TEXT", 0, "''", 0],
[3, "domain_total", "TEXT", 0, "''", 0],
[4, "port", "TEXT", 0, "''", 0],
[5, "sid", "int", 0, "0", 0],
[6, "address", "TEXT", 0, "''", 0],
[7, "brief", "TEXT", 0, "''", 0],
[8, "protocol", "TEXT", 0, "''", 0],
[9, "addtime", "TEXT", 0, "''", 0]
]
},
"firewall_ip": {
"sql": "CREATE TABLE `firewall_ip` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `types` TEXT,\n `address` TEXT DEFAULT '',\n `brief` TEXT DEFAULT '',\n `addtime` TEXT DEFAULT '',\n `sid` int DEFAULT 0,\n `domain` TEXT DEFAULT '',\n `chain` TEXT DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "types", "TEXT", 0, "''", 0],
[2, "address", "TEXT", 0, "''", 0],
[3, "brief", "TEXT", 0, "''", 0],
[4, "addtime", "TEXT", 0, "''", 0],
[5, "sid", "INTEGER", 0, 0, 0],
[6, "domain", "TEXT", 0, "''", 0],
[7, "chain", "TEXT", 0, "''", 0]
]
},
"firewall_new": {
"sql": "CREATE TABLE `firewall_new` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `protocol` TEXT DEFAULT '',\n `ports` TEXT,\n `types` TEXT,\n `address` TEXT DEFAULT '',\n `brief` TEXT DEFAULT '',\n `addtime` TEXT DEFAULT '',\n `domain` TEXT DEFAULT '',\n `sid` int DEFAULT 0,\n `chain` TEXT DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "protocol", "TEXT", 0, "''", 0],
[2, "ports", "TEXT", 0, "''", 0],
[3, "types", "TEXT", 0, "''", 0],
[4, "address", "TEXT", 0, "''", 0],
[5, "brief", "TEXT", 0, "''", 0],
[6, "addtime", "TEXT", 0, "''", 0],
[7, "domain", "TEXT", 0, "''", 0],
[8, "sid", "INTEGER", 0, 0, 0],
[9, "chain", "TEXT", 0, "''", 0]
]
},
"firewall_trans": {
"sql": "CREATE TABLE `firewall_trans` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `start_port` TEXT,\n `ended_ip` TEXT,\n `ended_port` TEXT,\n `protocol` TEXT DEFAULT '',\n `addtime` TEXT DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "start_port", "TEXT", 0, "''", 0],
[2, "ended_ip", "TEXT", 0, "''", 0],
[3, "ended_port", "TEXT", 0, "''", 0],
[4, "protocol", "TEXT", 0, "''", 0],
[5, "addtime", "TEXT", 0, "''", 0]
]
},
"firewall_forward": {
"sql": "CREATE TABLE `firewall_forward` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `S_Address` TEXT,\n `S_Domain` TEXT,\n `S_Port` TEXT,\n `T_Address` TEXT,\n `T_Domain` TEXT,\n `T_Port` TEXT DEFAULT '',\n `Protocol` TEXT DEFAULT '',\n `Family` TEXT DEFAULT '',\n `addtime` TEXT DEFAULT '',\n `brief` TEXT DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, null, 1],
[1, "S_Address", "TEXT", 0, null, 0],
[2, "S_Domain", "TEXT", 0, null, 0],
[3, "S_Port", "TEXT", 0, null, 0],
[4, "T_Address", "TEXT", 0, null, 0],
[5, "T_Domain", "TEXT", 0, null, 0],
[6, "T_Port", "TEXT", 0, "''", 0],
[7, "Protocol", "TEXT", 0, "''", 0],
[8, "Family", "TEXT", 0, "''", 0],
[9, "addtime", "TEXT", 0, "''", 0],
[10, "brief", "TEXT", 0, "''", 0]
]
}
},
"log.db": {
"logs": {
"sql": "CREATE TABLE `logs` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `type` TEXT,\n `log` TEXT,\n `addtime` TEXT,\n `uid` integer DEFAULT '1',\n `username` TEXT DEFAULT 'system'\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "type", "TEXT", 0, "''", 0],
[2, "log", "TEXT", 0, "''", 0],
[3, "addtime", "TEXT", 0, "''", 0],
[4, "uid", "integer", 0, "'1'", 0],
[5, "username", "TEXT", 0, "'system'", 0]
]
}
},
"crontab.db": {
"crontab": {
"sql": "CREATE TABLE \"crontab\" (\n \"id\" INTEGER PRIMARY KEY AUTOINCREMENT,\n \"name\" TEXT,\n \"type\" TEXT,\n \"where1\" TEXT,\n \"where_hour\" INTEGER,\n \"where_minute\" INTEGER,\n \"echo\" TEXT,\n \"addtime\" TEXT,\n \"status\" INTEGER DEFAULT 1,\n \"save\" INTEGER DEFAULT 3,\n \"backupTo\" TEXT DEFAULT off,\n \"sName\" TEXT,\n \"sBody\" TEXT,\n \"sType\" TEXT,\n \"urladdress\" TEXT,\n \"save_local\" INTEGER DEFAULT 0,\n \"notice\" INTEGER DEFAULT 0,\n \"notice_channel\" TEXT DEFAULT '',\n `db_type` TEXT DEFAULT '',\n `split_type` TEXT DEFAULT '',\n `split_value` INTEGER DEFAULT 0,\n `rname` TEXT DEFAULT '',\n `type_id` INTEGER,\n `backup_mode` TEXT,\n `db_backup_path` TEXT,\n `time_type` TEXT,\n `special_time` TEXT,\n `flock` INTEGER DEFAULT 0,\n `post_param` TEXT,\n `log_cut_path` TEXT,\n `user_agent` TEXT,\n `version` TEXT,\n `table_list` TEXT,\n `time_set` TEXT,\n `keyword` TEXT,\n `result` INTEGER DEFAULT 1,\n `second` TEXT \n )",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "TEXT", 0, "''", 0],
[2, "type", "TEXT", 0, "''", 0],
[3, "where1", "TEXT", 0, "''", 0],
[4, "where_hour", "INTEGER", 0, 0, 0],
[5, "where_minute", "INTEGER", 0, 0, 0],
[6, "echo", "TEXT", 0, "''", 0],
[7, "addtime", "TEXT", 0, "''", 0],
[8, "status", "INTEGER", 0, "1", 0],
[9, "save", "INTEGER", 0, "3", 0],
[10, "backupTo", "TEXT", 0, "off", 0],
[11, "sName", "TEXT", 0, "''", 0],
[12, "sBody", "TEXT", 0, "''", 0],
[13, "sType", "TEXT", 0, "''", 0],
[14, "urladdress", "TEXT", 0, "''", 0],
[15, "save_local", "INTEGER", 0, "0", 0],
[16, "notice", "INTEGER", 0, "0", 0],
[17, "notice_channel", "TEXT", 0, "''", 0],
[18, "db_type", "TEXT", 0, "''", 0],
[19, "split_type", "TEXT", 0, "''", 0],
[20, "split_value", "INTEGER", 0, "0", 0],
[21, "rname", "TEXT", 0, "''", 0],
[22, "type_id", "INTEGER", 0, 0, 0],
[23, "backup_mode", "TEXT", 0, "''", 0],
[24, "db_backup_path", "TEXT", 0, "''", 0],
[25, "time_type", "TEXT", 0, "''", 0],
[26, "special_time", "TEXT", 0, "''", 0],
[27, "flock", "INTEGER", 0, "0", 0],
[28, "post_param", "TEXT", 0, "''", 0],
[29, "log_cut_path", "TEXT", 0, "''", 0],
[30, "user_agent", "TEXT", 0, "''", 0],
[31, "version", "TEXT", 0, "''", 0],
[32, "table_list", "TEXT", 0, "''", 0],
[33, "time_set", "TEXT", 0, "''", 0],
[34, "keyword", "TEXT", 0, "''", 0],
[35, "result", "INTEGER", 0, "1", 0],
[36, "second", "TEXT", 0, "''", 0]
]
},
"crontab_types": {
"sql": "CREATE TABLE \"crontab_types\" (\n \"id\" INTEGER PRIMARY KEY AUTOINCREMENT,\n \"name\" VARCHAR DEFAULT '',\n \"ps\" VARCHAR DEFAULT ''\n )",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "VARCHAR", 0, "''", 0],
[2, "ps", "VARCHAR", 0, "''", 0]
]
}
},
"backup.db": {
"backup": {
"sql": "CREATE TABLE `backup` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `type` INTEGER,\n `name` TEXT,\n `pid` INTEGER,\n `filename` TEXT,\n `size` INTEGER,\n `addtime` TEXT,\n\t`ps` STRING DEFAULT '\u65e0',\n\t`cron_id` INTEGER DEFAULT 0\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "type", "INTEGER", 0, 0, 0],
[2, "name", "TEXT", 0, "''", 0],
[3, "pid", "INTEGER", 0, 0, 0],
[4, "filename", "TEXT", 0, "''", 0],
[5, "size", "INTEGER", 0, 0, 0],
[6, "addtime", "TEXT", 0, "''", 0],
[7, "ps", "STRING", 0, "'\u65e0'", 0],
[8, "cron_id", "INTEGER", 0, "0", 0]
]
}
},
"task.db": {
"boce_task": {
"sql": "CREATE TABLE `boce_task` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `name` STRING (64),\n `url` STRING (128),\n `status` INTEGER,\n `channel` STRING (128),\n `cycle` INTEGER default 10,\n `addtime` INTEGER default 0,\n `address` STRING (128) default 'localhost',\n `keyword` STRING (128) default '',\n `status_code` BOOLEAN default 0,\n `delay` INTEGER default 0,\n `similarity` TEXT default '',\n `size` INTEGER default 0,\n `sensitive` BOOLEAN default 0,\n `alarm_count` integer default -1\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "STRING (64)", 0, "''", 0],
[2, "url", "STRING (128)", 0, "''", 0],
[3, "status", "INTEGER", 0, 0, 0],
[4, "channel", "STRING (128)", 0, "''", 0],
[5, "cycle", "INTEGER", 0, "10", 0],
[6, "addtime", "INTEGER", 0, "0", 0],
[7, "address", "STRING (128)", 0, "'localhost'", 0],
[8, "keyword", "STRING (128)", 0, "''", 0],
[9, "status_code", "BOOLEAN", 0, "0", 0],
[10, "delay", "INTEGER", 0, "0", 0],
[11, "similarity", "TEXT", 0, "''", 0],
[12, "size", "INTEGER", 0, "0", 0],
[13, "sensitive", "BOOLEAN", 0, "0", 0],
[14, "alarm_count", "integer", 0, "-1", 0]
]
},
"boce_list": {
"sql": "CREATE TABLE `boce_list` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `pid` INTEGER,\n `data` TEXT,\n `status` INTEGER,\n `addtime` INTEGER\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "pid", "INTEGER", 0, 0, 0],
[2, "data", "TEXT", 0, "''", 0],
[3, "status", "INTEGER", 0, 0, 0],
[4, "addtime", "INTEGER", 0, 0, 0]
]
},
"task_list": {
"sql": "CREATE TABLE `task_list` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `name` \t\t\tTEXT,\n `type`\t\t\tTEXT,\n `status` \t\t\tINTEGER,\n `shell` \t\t\tTEXT,\n `other` TEXT,\n `exectime` \t \tINTEGER,\n `endtime` \t \tINTEGER,\n `addtime`\t\t\tINTEGER\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "TEXT", 0, "''", 0],
[2, "type", "TEXT", 0, "''", 0],
[3, "status", "INTEGER", 0, 0, 0],
[4, "shell", "TEXT", 0, "''", 0],
[5, "other", "TEXT", 0, "''", 0],
[6, "exectime", "INTEGER", 0, 0, 0],
[7, "endtime", "INTEGER", 0, 0, 0],
[8, "addtime", "INTEGER", 0, 0, 0]
]
},
"tasks": {
"sql": "CREATE TABLE `tasks` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `name` \t\t\tTEXT,\n `type`\t\t\tTEXT,\n `status` \t\tTEXT,\n `addtime` \tTEXT,\n `start` \t INTEGER,\n `end` \t INTEGER,\n `execstr` \tTEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "TEXT", 0, "''", 0],
[2, "type", "TEXT", 0, "''", 0],
[3, "status", "TEXT", 0, "''", 0],
[4, "addtime", "TEXT", 0, "''", 0],
[5, "start", "INTEGER", 0, 0, 0],
[6, "end", "INTEGER", 0, 0, 0],
[7, "execstr", "TEXT", 0, "''", 0],
[8, "msg", "TEXT", 0, "'安装成功'", 0],
[9, "install_status", "INTEGER", 0, 1, 0]
]
}
},
"default.db": {
"div_list": {
"sql": "CREATE TABLE `div_list` (\n`id` INTEGER PRIMARY KEY AUTOINCREMENT,\n`div` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "div", "TEXT", 0, "''", 0]
]
},
"download_token": {
"sql": "CREATE TABLE `download_token` (\n`id` INTEGER PRIMARY KEY AUTOINCREMENT,\n`token` REAL,\n`filename` REAL,\n`total` INTEGER DEFAULT 0,\n`expire` INTEGER,\n`password` REAL,\n`ps` REAL,\n`addtime` INTEGER\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "token", "REAL", 0, 0, 0],
[2, "filename", "REAL", 0, 0, 0],
[3, "total", "INTEGER", 0, "0", 0],
[4, "expire", "INTEGER", 0, 0, 0],
[5, "password", "REAL", 0, 0, 0],
[6, "ps", "REAL", 0, 0, 0],
[7, "addtime", "INTEGER", 0, 0, 0]
]
},
"messages": {
"sql": "CREATE TABLE `messages` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `level` TEXT,\n `msg` TEXT,\n `state` INTEGER DEFAULT 0,\n `expire` INTEGER,\n `addtime` INTEGER,\n `send` integer DEFAULT 0,\n `retry_num` integer DEFAULT 0\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "level", "TEXT", 0, "''", 0],
[2, "msg", "TEXT", 0, "''", 0],
[3, "state", "INTEGER", 0, "0", 0],
[4, "expire", "INTEGER", 0, 0, 0],
[5, "addtime", "INTEGER", 0, 0, 0],
[6, "send", "integer", 0, "0", 0],
[7, "retry_num", "integer", 0, "0", 0]
]
},
"temp_login": {
"sql": "CREATE TABLE `temp_login` (\n`id` INTEGER PRIMARY KEY AUTOINCREMENT,\n`token` REAL,\n`salt` REAL,\n`state` INTEGER,\n`login_time` INTEGER,\n`login_addr` REAL,\n`logout_time` INTEGER,\n`expire` INTEGER,\n`addtime` INTEGER\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "token", "REAL", 0, 0, 0],
[2, "salt", "REAL", 0, 0, 0],
[3, "state", "INTEGER", 0, 0, 0],
[4, "login_time", "INTEGER", 0, 0, 0],
[5, "login_addr", "REAL", 0, 0, 0],
[6, "logout_time", "INTEGER", 0, 0, 0],
[7, "expire", "INTEGER", 0, 0, 0],
[8, "addtime", "INTEGER", 0, 0, 0]
]
},
"security": {
"sql": "CREATE TABLE `security` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `type` TEXT,\n `log` TEXT,\n `addtime` INTEGER DEFAULT 0\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "type", "TEXT", 0, "''", 0],
[2, "log", "TEXT", 0, "''", 0],
[3, "addtime", "INTEGER", 0, "0", 0]
]
},
"send_msg": {
"sql": "CREATE TABLE `send_msg` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `name` TEXT,\n `send_type` TEXT,\n `msg` TEXT,\n `is_send` TEXT,\n `type` TEXT,\n `inser_time` TEXT DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "TEXT", 0, "''", 0],
[2, "send_type", "TEXT", 0, "''", 0],
[3, "msg", "TEXT", 0, "''", 0],
[4, "is_send", "TEXT", 0, "''", 0],
[5, "type", "TEXT", 0, "''", 0],
[6, "inser_time", "TEXT", 0, "''", 0]
]
},
"send_settings": {
"sql": "CREATE TABLE `send_settings` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `name` TEXT,\n `type` TEXT,\n `path` TEXT,\n `send_type` TEXT,\n `last_time` TEXT,\n `time_frame` TEXT,\n `inser_time` TEXT DEFAULT''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "name", "TEXT", 0, "''", 0],
[2, "type", "TEXT", 0, "''", 0],
[3, "path", "TEXT", 0, "''", 0],
[4, "send_type", "TEXT", 0, "''", 0],
[5, "last_time", "TEXT", 0, "''", 0],
[6, "time_frame", "TEXT", 0, "''", 0],
[7, "inser_time", "TEXT", 0, "''", 0]
]
},
"ssh_login_record": {
"sql": "CREATE TABLE `ssh_login_record` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `addr` TEXT,\n `server_ip` TEXT,\n `user_agent` TEXT,\n `ssh_user` TEXT,\n `login_time` INTEGER DEFAULT 0,\n `close_time` INTEGER DEFAULT 0,\n `video_addr` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "addr", "TEXT", 0, "''", 0],
[2, "server_ip", "TEXT", 0, "''", 0],
[3, "user_agent", "TEXT", 0, "''", 0],
[4, "ssh_user", "TEXT", 0, "''", 0],
[5, "login_time", "INTEGER", 0, "0", 0],
[6, "close_time", "INTEGER", 0, "0", 0],
[7, "video_addr", "TEXT", 0, "''", 0]
]
},
"rsync_oss": {
"sql": "CREATE TABLE `rsync_oss` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `rsync_path` DEFAULT '',\n `rsync_name` DEFAULT '',\n `all_num` INTEGER DEFAULT 0,\n `rsync_num` INTEGER DEFAULT 0,\n `recycle_bin` DEFAULT '',\n `where_1` DEFAULT '',\n `where_2` DEFAULT '',\n `webdav` DEFAULT '',\n `ftp` DEFAULT '',\n `alioss` DEFAULT '',\n `txcos` DEFAULT '',\n `qiniu` DEFAULT '',\n `aws` DEFAULT '',\n `upyun` DEFAULT '',\n `obs` DEFAULT '',\n `bos` DEFAULT '',\n `gcloud_storage` DEFAULT '', \n `gdrive` DEFAULT '',\n `notice` DEFAULT '',\n `notice_channel` DEFAULT '',\n `rsync_status` DEFAULT '',\n `rsync_cycle` DEFAULT '',\n `last_time` TEXT DEFAULT '',\n `rsync_mode` TEXT DEFAULT '',\n `is_del` TEXT DEFAULT '',\n `add_time` DEFAULT ''\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "rsync_path", "", 0, "''", 0],
[2, "rsync_name", "", 0, "''", 0],
[3, "all_num", "INTEGER", 0, "0", 0],
[4, "rsync_num", "INTEGER", 0, "0", 0],
[5, "recycle_bin", "", 0, "''", 0],
[6, "where_1", "", 0, "''", 0],
[7, "where_2", "", 0, "''", 0],
[8, "webdav", "", 0, "''", 0],
[9, "ftp", "", 0, "''", 0],
[10, "alioss", "", 0, "''", 0],
[11, "txcos", "", 0, "''", 0],
[12, "qiniu", "", 0, "''", 0],
[13, "aws", "", 0, "''", 0],
[14, "upyun", "", 0, "''", 0],
[15, "obs", "", 0, "''", 0],
[16, "bos", "", 0, "''", 0],
[17, "gcloud_storage", "", 0, "''", 0],
[18, "gdrive", "", 0, "''", 0],
[19, "notice", "", 0, "''", 0],
[20, "notice_channel", "", 0, "''", 0],
[21, "rsync_status", "", 0, "''", 0],
[22, "rsync_cycle", "", 0, "''", 0],
[23, "last_time", "TEXT", 0, "''", 0],
[24, "rsync_mode", "TEXT", 0, "''", 0],
[25, "is_del", "TEXT", 0, "''", 0],
[26, "add_time", "", 0, "''", 0]
]
},
"panel_search_log": {
"sql": "CREATE TABLE `panel_search_log` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `rtext` TEXT,\n `exts` TEXT,\n `path` TEXT,\n `mode` TEXT,\n `isword` TEXT,\n `iscase` TEXT,\n `noword` TEXT,\n `backup_path` TEXT,\n `time` TEXT\n)",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "rtext", "TEXT", 0, "''", 0],
[2, "exts", "TEXT", 0, "''", 0],
[3, "path", "TEXT", 0, "''", 0],
[4, "mode", "TEXT", 0, "''", 0],
[5, "isword", "TEXT", 0, "''", 0],
[6, "iscase", "TEXT", 0, "''", 0],
[7, "noword", "TEXT", 0, "''", 0],
[8, "backup_path", "TEXT", 0, "''", 0],
[9, "time", "TEXT", 0, "''", 0]
]
}
},
"client_info.db": {
"client_info": {
"sql": "CREATE TABLE client_info (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n remote_addr VARCHAR(50) NOT NULL,\n remote_port INTEGER DEFAULT 0,\n session_id VARCHAR(32) NOT NULL,\n user_agent TEXT NOT NULL,\n login_time INTEGER DEFAULT 0\n )",
"fields": [
[0, "id", "INTEGER", 0, 0, 1],
[1, "remote_addr", "VARCHAR(50)", 1, "''", 0],
[2, "remote_port", "INTEGER", 0, 0, 0],
[3, "session_id", "VARCHAR(32)", 1, "''", 0],
[4, "user_agent", "TEXT", 1, "''", 0],
[5, "login_time", "INTEGER", 0, 0, 0]
]
}
},
"script.db": {
"operator_where": {
"sql": "CREATE TABLE operator_where (\n where_id INTEGER PRIMARY KEY AUTOINCREMENT,\n trigger_id INTEGER,\n operator VARCHAR,\n op_value VARCHAR,\n args VARCHAR,\n run_script_id INTEGER,\n run_script TEXT,\n create_time INTEGER DEFAULT (0)\n)",
"fields": [
[0, "where_id", "INTEGER", 0, 0, 1],
[1, "trigger_id", "INTEGER", 0, 0, 0],
[2, "operator", "VARCHAR", 0, "''", 0],
[3, "op_value", "VARCHAR", 0, "''", 0],
[4, "args", "VARCHAR", 0, "''", 0],
[5, "run_script_id", "INTEGER", 0, 0, 0],
[6, "run_script", "TEXT", 0, "''", 0],
[7, "create_time", "INTEGER", 0, 0, 0]
]
},
"scripts": {
"sql": "CREATE TABLE scripts (\n script_id INTEGER PRIMARY KEY AUTOINCREMENT,\n type_id INTEGER DEFAULT (0), is_baota INTEGER DEFAULT (0),\n name VARCHAR, status INTEGER DEFAULT (1),\n author VARCHAR, script TEXT,\n version VARCHAR,\n return_type VARCHAR DEFAULT string,\n is_args INTEGER DEFAULT (0),\n script_type INTEGER DEFAULT (0),\n ps VARCHAR,\n create_time INTEGER DEFAULT (0)\n, 'args_title' VARCHAR, 'args_ps' VARCHAR)",
"fields": [
[0, "script_id", "INTEGER", 0, 0, 1],
[1, "type_id", "INTEGER", 0, 0, 0],
[2, "is_baota", "INTEGER", 0, 0, 0],
[3, "name", "VARCHAR", 0, "''", 0],
[4, "status", "INTEGER", 0, "1", 0],
[5, "author", "VARCHAR", 0, "''", 0],
[6, "script", "TEXT", 0, "''", 0],
[7, "version", "VARCHAR", 0, "''", 0],
[8, "return_type", "VARCHAR", 0, "string", 0],
[9, "is_args", "INTEGER", 0, 0, 0],
[10, "script_type", "INTEGER", 0, 0, 0],
[11, "ps", "VARCHAR", 0, "''", 0],
[12, "create_time", "INTEGER", 0, 0, 0],
[13, "args_title", "VARCHAR", 0, "''", 0],
[14, "args_ps", "VARCHAR", 0, "''", 0]
]
},
"trigger": {
"sql": "CREATE TABLE \"trigger\" (\n trigger_id INTEGER PRIMARY KEY AUTOINCREMENT,\n name VARCHAR,\n status INTEGER DEFAULT (1),\n script_id INTEGER DEFAULT (0),\n script_body TEXT,\n cycle_type VARCHAR,\n cycle_where VARCHAR,\n cycle_hour INTEGER DEFAULT (0),\n cycle_minute INTEGER DEFAULT (0),\n ps VARCHAR,\n create_time INTEGER DEFAULT (0)\n, 'args' VARCHAR)",
"fields": [
[0, "trigger_id", "INTEGER", 0, 0, 1],
[1, "name", "VARCHAR", 0, "''", 0],
[2, "status", "INTEGER", 0, "1", 0],
[3, "script_id", "INTEGER", 0, 0, 0],
[4, "script_body", "TEXT", 0, "''", 0],
[5, "cycle_type", "VARCHAR", 0, "''", 0],
[6, "cycle_where", "VARCHAR", 0, "''", 0],
[7, "cycle_hour", "INTEGER", 0, 0, 0],
[8, "cycle_minute", "INTEGER", 0, 0, 0],
[9, "ps", "VARCHAR", 0, "''", 0],
[10, "create_time", "INTEGER", 0, 0, 0],
[11, "args", "VARCHAR", 0, "''", 0]
]
},
"types": {
"sql": "CREATE TABLE types (\n type_id INTEGER PRIMARY KEY AUTOINCREMENT,\n name VARCHAR, title VARCHAR\n)",
"fields": [
[0, "type_id", "INTEGER", 0, 0, 1],
[1, "name", "VARCHAR", 0, "''", 0],
[2, "title", "VARCHAR", 0, "''", 0]
]
},
"tasks": {
"sql": "CREATE TABLE tasks (\n log_id INTEGER PRIMARY KEY AUTOINCREMENT,\n script_id INTEGER DEFAULT (0),\n trigger_id INTEGER DEFAULT (0),\n where_id INTEGER DEFAULT (0),\n status INTEGER DEFAULT (0),\n result_succ VARCHAR,\n result_err VARCHAR,\n start_time INTEGER DEFAULT (0),\n end_time INTEGER DEFAULT (0)\n)",
"fields": [
[0, "log_id", "INTEGER", 0, 0, 1],
[1, "script_id", "INTEGER", 0, 0, 0],
[2, "trigger_id", "INTEGER", 0, 0, 0],
[3, "where_id", "INTEGER", 0, 0, 0],
[4, "status", "INTEGER", 0, 0, 0],
[5, "result_succ", "VARCHAR", 0, "''", 0],
[6, "result_err", "VARCHAR", 0, "''", 0],
[7, "start_time", "INTEGER", 0, 0, 0],
[8, "end_time", "INTEGER", 0, 0, 0]
]
}
}
}

41
config/dns_api_init.json Normal file
View File

@@ -0,0 +1,41 @@
[
{
"name": "CloudxnsDns",
"title": "CloudXns",
"ps": "Automatically resolve application SSL using cloudxns API interface",
"help": "CloudxnsBackground > User Center > API Management, follow the instructions to get AccessKey/SecretKey",
"data": [
{
"key": "SAVED_CX_Key",
"name": "AccessKey",
"value": ""
},
{
"key": "SAVED_CX_Secret",
"name": "SecretKey",
"value": ""
}
]
},
{
"ps": "Use CloudFlare's API interface to automatically parse and apply for SSL",
"title": "CloudFlare",
"data": [{
"value": "",
"key": "SAVED_CF_MAIL",
"name": "E-Mail"
}, {
"value": "",
"key": "SAVED_CF_KEY",
"name": "API Key"
}],
"help": "How to get API Token",
"name": "CloudFlareDns"
},
{
"name": "dns",
"title": "Manual resolution",
"ps": "Returns the host and txt values, which are manually parsed by the user",
"data": false
}
]

File diff suppressed because one or more lines are too long

2102
config/domain_root.txt Normal file

File diff suppressed because it is too large Load Diff

1
config/hosts.json Normal file
View File

@@ -0,0 +1 @@
["128.1.164.196","45.76.53.20","[2001:19f0:7001:54fc:5400:2ff:fe9b:97f9]", "158.247.208.19"]

1
config/index.json Normal file
View File

@@ -0,0 +1 @@
[]

468
config/lib.json Normal file
View File

@@ -0,0 +1,468 @@
{
"public":
[
{
"name":"gcc",
"ps":"C 语言编译器",
"check":"/usr/bin/gcc",
"debian":"apt install gcc -y",
"redhat":"yum install gcc -y",
"getv":"gcc --version|grep gcc|awk '{print $3}'"
},
{
"name":"gcc-c++",
"ps":"C++编译器",
"check":"/usr/bin/g++",
"debian":"apt install gcc-c++ -y",
"redhat":"yum install gcc-c++ -y",
"getv":"g++ --version|grep g++|awk '{print $3}'"
},
{
"name":"flex",
"ps":"快速词法分析器",
"check":"/usr/bin/flex",
"debian":"apt install flex -y",
"redhat":"yum install flex -y",
"getv":"flex -V|awk '{print $2}'"
},
{
"name":"bison",
"ps":"Yacc-like分析器生成器",
"check":"/usr/bin/bison",
"debian":"apt install bison -y",
"redhat":"yum install bison bison-devel -y",
"getv":"bison -V|grep bison|awk '{print $4}'"
},
{
"name":"file",
"ps":"Determine type of FILEs",
"check":"/usr/bin/file",
"debian":"apt install file -y",
"redhat":"yum install file -y",
"getv":"file -v|grep file|grep -oE [0-9].+"
},
{
"name":"libtool",
"ps":"通用库支持脚本",
"check":"/usr/bin/libtool",
"debian":"apt install libtool libltdl7 libltdl-dev -y",
"redhat":"yum install libtool libtool-libs -y",
"getv":"libtool --version|grep libtool |awk '{print $4}'"
},
{
"name":"autoconf",
"ps":"编译、安装和打包软件的配置脚本工具",
"check":"/usr/bin/autoconf",
"debian":"apt install autoconf -y",
"redhat":"yum install autoconf -y",
"getv":"autoconf -V|grep autoconf|awk '{print $4}'"
},
{
"name":"patch",
"ps":"更新文本补丁工具",
"check":"/usr/bin/patch",
"debian":"apt install patch -y",
"redhat":"yum install patch -y",
"getv":"patch -v|grep patch|awk '{print $3}'"
},
{
"name":"libjpeg",
"ps":"处理JPEG图像数据格式的C library",
"check":"/usr/lib/libjpeg.so,/usr/lib64/libjpeg.so",
"debian":"apt install libjpeg62-turbo libjpeg62-turbo-dev -y",
"redhat":"yum install libjpeg libjpeg-devel -y",
"getv":"rpm -q grep libjpeg-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libjpeg|awk '{print $3}'|tail -1"
},
{
"name":"libpng",
"ps":"处理PNG图像的C library",
"check":"/usr/lib/libpng.so,/usr/lib64/libpng.so",
"debian":"apt install libpng-dev -y",
"redhat":"yum install libpng libpng-devel -y",
"getv":"rpm -q libpng-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libpng|awk '{print $3}'|tail -1"
},
{
"name":"gd",
"ps":"动态创建图像的C library",
"check":"/usr/lib/libgd.so,/usr/lib64/libgd.so,/usr/lib/x86_64-linux-gnu/libgd.so",
"debian":"apt install libgd3 libgd-dev -y",
"redhat":"yum install gd gd-devel -y",
"getv":"rpm -q gd-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libgd3|awk '{print $3}'"
},
{
"name":"zlib",
"ps":"数据压缩用的函式库",
"check":"/usr/lib/libz.so,/usr/lib64/libz.so,/usr/lib/x86_64-linux-gnu/libz.so",
"debian":"apt install zlib1g zlib1g-dev -y",
"redhat":"yum install zlib zlib-devel -y",
"getv":"rpm -q zlib-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep zlib1g-dev|awk '{print $3}'"
},
{
"name":"libxml2",
"ps":"XML C解析器和工具包",
"check":"/usr/lib/libxml2.so,/usr/lib64/libxml2.so,/usr/lib/x86_64-linux-gnu/libxml2.so",
"debian":"apt install libxml2 libxml2-dev -y",
"redhat":"yum install libxml2 libxml2-devel -y",
"getv":"rpm -q libxml2-devel|grep -oE [0-9].+-[0-9]+|sed 's/2-devel-//' :D dpkg -l|grep libxml2-dev|awk '{print $3}'"
},
{
"name":"glib2",
"ps":" C 语言编写的库和程序提供了核心应用程序组件",
"check":"/usr/lib/libglib-2.0.so,/usr/lib64/libglib-2.0.so,/usr/lib/x86_64-linux-gnu/libglib-2.0.so",
"debian":"apt install libglib2.0-0 libglib2.0-dev -y",
"redhat":"yum install glib2 glib2-devel -y",
"getv":"rpm -q glib2-devel|grep -oE [0-9].+-[0-9]+|sed 's/2-devel-//' :D dpkg -l|grep libglib2.0-dev|awk '{print $3}'"
},
{
"name":"libevent",
"ps":"事件通知库",
"check":"/usr/lib/libevent.so,/usr/lib64/libevent.so,/usr/lib/x86_64-linux-gnu/libevent.so",
"debian":"apt install libevent-dev -y",
"redhat":"yum install libevent libevent-devel -y",
"getv":"rpm -q libevent-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l |grep libevent-dev|awk '{print $3}'"
},
{
"name":"ncurses",
"ps":"字符终端处理库",
"check":"/usr/lib/libcurses.so,/usr/lib64/libcurses.so,/usr/lib/x86_64-linux-gnu/libncurses.so",
"debian":"apt install libncurses5 libncurses5-dev -y",
"redhat":"yum install ncurses ncurses-devel -y",
"getv":"rpm -q ncurses-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libncurses5-dev|awk '{print $3}'"
},
{
"name":"curl",
"ps":"文件传输工具",
"check":"/usr/bin/curl",
"debian":"apt install curl",
"redhat":"yum install curl curl-devel -y",
"getv":"curl -V|grep curl|awk '{print $2}'"
},
{
"name":"libidn",
"ps":"字符串预处理工具",
"check":"/usr/lib/libidn.so,/usr/lib64/libidn.so,/lib/x86_64-linux-gnu/libidn.so.11,/usr/lib/x86_64-linux-gnu/libidn.so.11",
"debian":"apt install libidn11 -y",
"redhat":"yum install libidn libidn-devel -y",
"getv":"rpm -q libidn-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libidn11|awk '{print $3}'"
},
{
"name": "openssl",
"ps": "C语言编写的安全库",
"check": "/usr/bin/openssl",
"debian": "apt install openssl libssl-dev -y",
"redhat": "yum install openssl openssl-devel -y",
"getv": "/usr/bin/openssl version|awk '{print $2}'|cut -f1 -d'-'"
},
{
"name":"gettext",
"ps":"国际化和本地化编写工具",
"check":"/usr/bin/gettext",
"debian":"apt install gettext -y",
"redhat":"yum install gettext gettext -y",
"getv":"gettext -V|grep gettext|awk '{print $4}'"
},
{
"name":"gmp",
"ps":"精密算法库",
"check":"/usr/lib/libgmp.so,/usr/lib64/libgmp.so,/usr/lib/x86_64-linux-gnu/libgmp.so.10",
"debian":"apt install libgmp10 -y",
"redhat":"yum install gmp-devel -y",
"getv":"rpm -q gmp-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libgmp10 |awk '{print $3}'"
},
{
"name":"libcap",
"ps":"网络数据包捕获函数包",
"check":"/usr/lib/libcap.so,/usr/lib64/libcap.so,/usr/lib/x86_64-linux-gnu/libcap.so",
"debian":"apt install libcap-dev -y",
"redhat":"yum install libcap libcap-devel -y",
"getv":"rpm -q libcap-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libcap-dev|awk '{print $3}'"
},
{
"name":"libXpm",
"ps":"X11 pixmap library",
"check":"/usr/lib/libXpm.so,/usr/lib64/libXpm.so,/usr/lib/x86_64-linux-gnu/libXpm.so",
"debian":"apt install libxpm-dev -y",
"redhat":"yum install libXpm-devel -y",
"getv":"rpm -q libXpm-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libxpm-dev|awk '{print $3}'"
},
{
"name":"c-ares",
"ps":"异步请求DNS的C library",
"check":"/usr/lib/libcares.so,/usr/lib64/libcares.so,/usr/lib/x86_64-linux-gnu/libcares.so",
"debian":"apt install libc-ares2 libc-ares-dev -y",
"redhat":"yum install c-ares c-ares-devel -y",
"getv":"rpm -q c-ares-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libc-ares-dev|awk '{print $3}'"
},
{
"name":"libicu",
"ps":"Unicode的国际组件",
"check":"/usr/bin/icu-config",
"debian":"apt install libicu-dev -y",
"redhat":"yum install libicu libicu-devel -y",
"getv":"icu-config --version"
},
{
"name":"libxslt",
"ps":"XSLT C library",
"check":"/usr/lib/libxslt.so,/usr/lib64/libxslt.so,/usr/lib/x86_64-linux-gnu/libxslt.so",
"debian":"apt install libxslt1-dev -y",
"redhat":"yum install libxslt libxslt-devel -y",
"getv":"rpm -q libxslt-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libxslt1-dev|awk '{print $3}'"
},
{
"name":"pcre",
"ps":"正则表达库",
"check":"/usr/bin/pcre-config",
"debian":"apt install libpcre3 libpcre3-dev -y",
"redhat":"yum install pcre pcre-devel -y",
"getv":"pcre-config --version"
},
{
"name":"expat",
"ps":"XML解析器",
"check":"/usr/lib64/libexpat.so,/usr/lib/libexpat.so,/usr/lib/x86_64-linux-gnu/libexpat.so",
"debian":"apt install libexpat1-dev -y",
"redhat":"yum install expat-devel -y",
"getv":"rpm -q expat-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libexpat1-dev|awk '{print $3}'"
},
{
"name":"readline",
"ps":"C Library",
"check":"/usr/lib/libreadline.so,/usr/lib64/libreadline.so,/usr/lib/x86_64-linux-gnu/libreadline.so",
"debian":"apt install libreadline-dev -y",
"redhat":"yum install readline-devel -y",
"getv":"rpm -q readline-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libreadline-dev|awk '{print $3}'"
},
{
"name":"libc-client",
"ps":"c-client library for mail protocols",
"check":"/usr/lib/libc-client.so,/usr/lib64/libc-client.so",
"debian":"apt install libc-client2007e libc-client2007e-dev -y",
"redhat":"yum install libc-client libc-client-devel -y",
"getv":"rpm -q libc-client|grep -oE [0-9]+[a-z]-[0-9]+ :D dpkg -l|grep libc-client2007e-dev|awk '{print $3}'"
},
{
"name":"freetype",
"ps":"字体渲染库/usr/lib64/libfreetype.so",
"check":"/usr/lib/libfreetype.so,/usr/lib64/libfreetype.so,/usr/lib/x86_64-linux-gnu/libfreetype.so",
"debian":"apt install libfreetype6 libfreetype6-dev -y",
"redhat":"yum install freetype freetype-devel -y",
"getv":"rpm -q freetype-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libfreetype6-dev|awk '{print $3}'"
},
{
"name": "bt-openssl",
"ps": "YakPanel 随包提供的 openssl 库",
"check": "/usr/local/openssl/bin/openssl",
"debian": "curl https://www.yakpanel.com/install/libsh/openssl.sh|bash",
"redhat": "curl https://www.yakpanel.com/install/libsh/openssl.sh|bash",
"getv": "/usr/local/openssl/bin/openssl version|awk '{print $2}'"
},
{
"name":"libkrb5",
"ps":"MIT Kerberos",
"check":"/usr/bin/krb5-config",
"debian":"apt install libkrb5-dev -y",
"redhat":"yum install krb5 krb5-devel -y",
"getv":"/usr/bin/krb5-config --version|awk '{print $4}'"
},
{
"name":"libaio",
"ps":"原生异步IO接口",
"check":"/usr/lib/libaio.so,/usr/lib64/libaio.so,/usr/lib/x86_64-linux-gnu/libaio.so",
"debian":"apt install libaio1 libaio-dev -y",
"redhat":"yum install libaio libaio-devel -y",
"getv":"rpm -q libaio-devel|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep libaio-dev|awk '{print $3}'"
}
],
"system":
[
{
"name": "diffutils",
"ps": "命令行工具",
"check": "/usr/bin/diff",
"debian": "apt install diffutils -y",
"redhat": "yum install diffutils -y",
"getv": "/usr/bin/diff --version|grep diff|awk '{print $4}'"
},
{
"name":"net-tools",
"ps":"NET-3网络工具包",
"check":"/bin/netstat",
"debian":"apt install net-tools -y",
"redhat":"yum install net-tools -y",
"getv":"rpm -q net-tools|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep net-tools|awk '{print $3}'"
},
{
"name":"zip",
"ps":"文件压缩工具",
"check":"/usr/bin/zip",
"debian":"apt install zip -y",
"redhat":"yum install zip -y",
"getv":"zip -v|grep Zip|grep Info-ZIP|awk '{print $4}'"
},
{
"name":"unzip",
"ps":"解压ZIP压缩格式的工具",
"check":"/usr/bin/unzip",
"debian":"apt install unzip -y",
"redhat":"yum install unzip -y",
"getv":"unzip|grep UnZip|awk '{print $2}'"
},
{
"name":"tar",
"ps":"文件压缩工具",
"check":"/usr/bin/tar,/bin/tar",
"debian":"apt install tar -y",
"redhat":"yum install tar -y",
"getv":"tar --version|grep tar|awk '{print $4}'"
},
{
"name":"bzip2",
"ps":"文件压缩工具",
"check":"/usr/bin/bzip2,/bin/bzip2",
"debian":"apt install bzip2 -y",
"redhat":"yum install bzip2 -y",
"getv":"rpm -q bzip2|grep -oE [0-9].+-[0-9]+ :D pkg -l|grep bzip2|awk '{print $3}'|head -n 1"
},
{
"name":"lsof",
"ps":"列出打开文件工具",
"check":"/usr/bin/lsof,/usr/sbin/lsof,/bin/lsof",
"debian":"apt install lsof -y",
"redhat":"yum install lsof -y",
"getv":"rpm -q lsof|grep -oE [0-9].+[0-9]-[0-9]+ :D dpkg -l |grep lsof|awk '{print $3}'"
},
{
"name":"perl",
"ps":"计算机程序语言",
"check":"/usr/bin/perl",
"debian":"apt install perl libperl-dev -y",
"redhat":"yum install perl perl-devel perl-Data-Dumper -y",
"getv":"perl -v|grep -oE v[0-9].[0-9]+.[0-9]+"
},
{
"name":"cron",
"ps":"Cron",
"check":"/usr/bin/crontab",
"debian":"apt install cron -y",
"redhat":"yum install crontabs -y",
"getv":"rpm -q crontabs|grep -oE [0-9].+-[0-9]+ :D dpkg -l|grep cron|awk '{print $3}'|tail -1"
},
{
"name":"glibc",
"ps":"C library",
"check":"/usr/bin/ldd,/usr/sbin/ldd,/bin/ldd",
"debian":"apt install libc6 libc6-dev -y",
"redhat":"yum install glibc glibc-devel glibc.i686 -y",
"getv":"ldd --version|grep ldd|awk '{print $4}'"
},
{
"name": "lua",
"ps": "脚本语言",
"check": "/usr/bin/lua",
"debian": "apt install lua5.1 lua5.1-dev -y",
"redhat": "yum install lua lua-devel -y",
"getv": "/usr/bin/lua -v 2>&1|awk '{print $2}'"
},
{
"name":"cjson",
"ps":"Json格式解析库",
"check":"/usr/local/lib/lua/5.1/cjson.so",
"debian":"curl https://www.yakpanel.com/install/libsh/cjson.sh|bash",
"redhat":"curl https://www.yakpanel.com/install/libsh/cjson.sh|bash",
"getv":"echo 2.1.0"
},
{
"name": "git",
"ps": "分布式版本控制系统",
"check": "/usr/bin/git",
"debian": "apt install git -y",
"redhat": "yum install git -y",
"getv": "/usr/bin/git --version|awk '{print $3}'"
},
{
"name":"e2fsprogs",
"ps":"文件系统工具集",
"check":"/usr/sbin/mkfs.ext4",
"debian":"apt install e2fsprogs -y",
"redhat":"yum install e2fsprogs e2fsproglibtools-devel -y",
"getv":"rpm -q e2fsprogs|grep -oE 1.+-[0-9]+ :D dpkg -l|grep e2fsprogs|awk '{print $3}'"
}
],
"php":
[
{
"name":"bt-curl",
"ps":"文件传输工具",
"check":"/usr/local/curl/bin/curl",
"debian":"curl https://www.yakpanel.com/install/libsh/curl.sh|bash",
"redhat":"curl https://www.yakpanel.com/install/libsh/curl.sh|bash",
"getv":"/usr/local/curl/bin/curl --version|grep curl|awk '{print $2}'"
},
{
"name":"libiconv",
"ps":"编码转换工具",
"check":"/usr/local/libiconv/bin/iconv",
"debian":"curl https://www.yakpanel.com/install/libsh/libiconv.sh|bash",
"redhat":"curl https://www.yakpanel.com/install/libsh/libiconv.sh|bash",
"getv":"/usr/local/libiconv/bin/iconv --version|grep iconv|awk '{print $4}'|grep -oE [0-9].[0-9]+"
},
{
"name":"libmcrypt",
"ps":"文件加密工具",
"check":"/usr/local/bin/libmcrypt-config",
"debian":"curl https://www.yakpanel.com/install/libsh/libmcrypt.sh|bash",
"redhat":"curl https://www.yakpanel.com/install/libsh/libmcrypt.sh|bash",
"getv":"/usr/local/bin/libmcrypt-config --version"
},
{
"name":"mcrypt",
"ps":"文件加密工具",
"check":"/usr/local/bin/mcrypt",
"debian":"curl https://www.yakpanel.com/install/libsh/mcrypt.sh|bash",
"redhat":"curl https://www.yakpanel.com/install/libsh/mcrypt.sh|bash",
"getv":"echo 2.6.8"
},
{
"name":"Mhash",
"ps":"加密扩展库",
"check":"/usr/local/lib/libmhash.so",
"debian":"curl https://www.yakpanel.com/install/libsh/mhash.sh|bash",
"redhat":"curl https://www.yakpanel.com/install/libsh/mhash.sh|bash",
"getv":"echo 0.9.9.9"
}
],
"apache":
[
{
"name":"nghttp2",
"ps":" HTTP/2 C Library ",
"check":"/usr/local/nghttp2/lib/libnghttp2.so",
"debian":"curl https://www.yakpanel.com/install/libsh/nghttp2.sh|bash",
"redhat":"curl https://www.yakpanel.com/install/libsh/nghttp2.sh|bash",
"getv":"cat /usr/local/nghttp2/version.pl"
}
],
"nginx":
[
{
"name":"luajit",
"ps":" lua即时编译器",
"check":"/usr/local/lib/libluajit-5.1.so.2",
"debian":"curl https://www.yakpanel.com/install/libsh/luajit.sh|bash",
"redhat":"curl https://www.yakpanel.com/install/libsh/luajit.sh|bash",
"getv":"echo 2.0.4"
}
],
"mysql":[
{
"name":"cmake",
"ps":"C/C++编译器,编译MySQL时需要它",
"check":"/usr/bin/cmake",
"debian":"apt install cmake -y",
"redhat":"yum install cmake -y",
"getv":"cmake --version|awk '{print $3}'"
}
]
}

1
config/link.json Normal file
View File

@@ -0,0 +1 @@
[]

142
config/menu.json Normal file
View File

@@ -0,0 +1,142 @@
[
{
"title": "Home",
"href": "/",
"class": "menu_home",
"id": "memuA",
"sort": 1
},
{
"title": "Website",
"href": "/site",
"class": "menu_web",
"id": "memuAsite",
"sort": 2
},
{
"title": "WP Toolkit",
"href": "/wp/toolkit",
"class": "menu_wp_toolkit",
"id": "memuAwptoolkit",
"sort": 2
},
{
"title": "FTP",
"href": "/ftp",
"class": "menu_ftp",
"id": "memuAftp",
"sort": 3
},
{
"title": "Databases",
"href": "/database",
"class": "menu_data",
"id": "memuAdatabase",
"sort": 4
},
{
"title": "Docker",
"href": "/docker",
"class": "menu_docker",
"id": "memuDocker",
"sort": 5
},
{
"title": "Monitor",
"href": "/control",
"class": "menu_control",
"id": "memuAcontrol",
"sort": 6
},
{
"title": "Security",
"href": "/firewall",
"class": "menu_firewall",
"id": "memuAfirewall",
"sort": 7
},
{
"title": "WAF",
"href": "/waf",
"class": "menu_btwaf",
"id": "memu_btwaf",
"sort": 8
},
{
"title": "Mail Server",
"href": "/mail",
"class": "memu_mailsys",
"id": "memu_mailsys",
"sort": 9
},
{
"title": "Files",
"href": "/files",
"class": "menu_folder",
"id": "memuAfiles",
"sort": 10
},
{
"title": "Node",
"href": "/node",
"class": "menu_node",
"id": "memuNode",
"sort": 11
},
{
"title": "Logs",
"href": "/logs",
"class": "menu_logs",
"id": "memuLogs",
"sort": 12
},
{
"title": "Domains",
"href": "/ssl_domain",
"class": "menu_domains",
"id": "memuDomains",
"sort": 13
},
{
"title": "Terminal",
"href": "/xterm",
"class": "menu_xterm",
"id": "memuAxterm",
"sort": 14
},
{
"title": "Account",
"href": "/whm",
"class": "menu_account",
"id": "memuAccount",
"sort": 15
},
{
"title": "Cron",
"href": "/crontab",
"class": "menu_day",
"id": "memuAcrontab",
"sort": 16
},
{
"title": "App Store",
"href": "/soft",
"class": "menu_soft",
"id": "memuAsoft",
"sort": 17
},
{
"title": "Settings",
"href": "/config",
"class": "menu_set",
"id": "memuAconfig",
"sort": 18
},
{
"title": "Log out",
"href": "/login?dologin=True",
"class": "menu_exit",
"id": "dologin",
"sort": 19
}
]

View File

@@ -0,0 +1,229 @@
[
{
"template": "base",
"option": [
{
"title": "Site",
"name": "sites",
"status": true,
"type": "base",
"source": {
"click": "href",
"href": "/site"
},
"params": [
{
"name": "Site Type",
"type": "select",
"option": [
{
"name": "ALL",
"source": "all"
},
{
"name": "PHP Project",
"source": "php"
},
{
"name": "Node Project",
"source": "node"
},
{
"name": "Proxy",
"source": "proxy"
}
]
}
]
},
{
"title": "FTP",
"name": "ftps",
"status": true,
"type": "base",
"source": {
"click": "href",
"href": "/ftp"
},
"params": []
},
{
"title": "Database",
"name": "databases",
"status": true,
"type": "base",
"source": {
"click": "href",
"href": "/database"
},
"params": [
{
"name": "Database Type",
"type": "select",
"option": [
{
"name": "ALL",
"source": "all"
},
{
"name": "MySQL",
"source": "mysql"
},
{
"name": "SQLServer",
"source": "sqlserver"
},
{
"name": "MongoDB",
"source": "mongodb"
},
{
"name": "Redis",
"source": "redis"
},
{
"name": "PgSQL",
"source": "pgsql"
}
]
}
]
},
{
"title": "Security",
"name": "security",
"status": true,
"type": "model",
"source": {
"click": "model",
"href": "security"
},
"params": []
}
]
},
{
"template": "browse",
"option": [
{
"title": "Monitor",
"name": "monitor",
"status": false,
"type": "plugin",
"source": {
"click": "plugin",
"href": "monitor"
},
"params": [
{
"name": "Site",
"type": "select",
"select_option": "site_all",
"option": []
},
{
"name": "Index",
"type": "select",
"option": [
{
"name": "Page Views",
"source": "pv"
},
{
"name": "Visitors",
"source": "uv"
},
{
"name": "IP",
"source": "ip"
},
{
"name": "Spider",
"source": "spider"
}
]
}
]
},
{
"title": "WAF",
"name": "btwaf",
"status": false,
"type": "plugin",
"source": {
"click": "href",
"href": "/waf/overview"
},
"params": []
},
{
"title": "Tamper Core",
"name": "tamper_core",
"status": false,
"type": "plugin",
"source": {
"click": "plugin",
"href": "tamper_core"
},
"params": []
}
]
},
{
"template": "browse",
"option": [
{
"title": "SSH Login Logs",
"name": "ssh_log",
"status": true,
"type": "model",
"source": {
"click": "href",
"href": "/security/ssh?menu=logs"
},
"params": [
{
"name": "Log Type",
"type": "select",
"option": [
{
"name": "ALL",
"source": "ALL"
},
{
"name": "Accepted",
"source": "Accepted"
},
{
"name": "Failed",
"source": "Failed"
}
]
}
]
},
{
"title": "SSL Certificates",
"name": "ssl",
"status": true,
"type": "model",
"source": {
"click": "model",
"href": "ssl"
},
"params": []
},
{
"title": "Alarm Logs",
"name": "alarm_logs",
"status": true,
"type": "model",
"source": {
"click": "href",
"href": "/setting/alarm?menu=logs"
},
"params": []
}
]
}
]

1
config/php_versions.json Normal file
View File

@@ -0,0 +1 @@
["52","53","54","55","56","70","71","72","73","74","80","81","82","83","84","85","90","91"]

44
config/safe_autofix.json Normal file
View File

@@ -0,0 +1,44 @@
[
"sw_ping",
"sw_ssh_passmin",
"sw_ssh_passmax",
"sw_ssh_clientalive",
"sw_panel_control",
"sw_ssh_notpass",
"sw_cve_2021_4034",
"sw_php_expose",
"sw_ssh_maxauth",
"sw_ssh_security",
"sw_files_recycle_bin",
"sw_kernel_space",
"sw_nginx_server",
"sw_ssh_passwarn",
"sw_site_spath",
"sw_tcp_syn_cookie",
"sw_alias_ls_rm",
"sw_bootloader_mod",
"sw_ssh_v2",
"sw_ftp_umask",
"sw_chmod_sid",
"sw_time_out",
"sw_debug_mode",
"sw_system_user",
"sw_pip_poison",
"sw_docker_mod",
"sw_ftp_root",
"sw_chmod_stickybit",
"sw_telnet_server",
"sw_strace_backdoor",
"sw_mongodb_auth",
"sw_httpd_version_leak",
"sw_php_display_errors",
"sw_php_backdoor",
"sw_httpd_trace_enable",
"sw_nginx_malware",
"sw_ssh_login_grace",
"sw_sudoers_nopasswd",
"sw_suid_dumpable",
"sw_tmp_malware",
"sw_protected_hardlinks",
"sw_protected_symlinks"
]

37
config/script_types.json Normal file
View File

@@ -0,0 +1,37 @@
[
{
"type_id": 1,
"name": "Service Management",
"title": "Scripts used to manage service status, such as detecting service status, stopping, reloading, starting, etc"
},
{
"type_id": 2,
"name": "Process Monitor",
"title": "Script used to monitor process status, such as process survival, overhead, etc"
},
{
"type_id": 3,
"name": "Alarm Notification",
"title": "Script for sending various alarm notifications"
},
{
"type_id": 4,
"name": "Load Monitoring",
"title": "Scripts used to monitor system load, such as CPU, memory, network, etc"
},
{
"type_id": 5,
"name": "Website Monitoring",
"title": "Script used to monitor website status, such as specifying URL address access status, content, etc"
},
{
"type_id": 6,
"name": "Other",
"title": "Comprehensive scripts for various purposes, such as system upgrades, panel upgrades, software upgrades, etc"
},
{
"type_id": 7,
"name": "Custom",
"title": "User defined script"
}
]

36
config/task.json Normal file
View File

@@ -0,0 +1,36 @@
{
"JOBS": [
{
"id": "1",
"func": "jobs:control_task",
"args": null,
"trigger": "interval",
"seconds": 15
},
{
"id": "2",
"func": "jobs:install_task",
"args": null,
"trigger": "interval",
"seconds": 10
},
{
"id": "3",
"func": "jobs:site_end_task",
"args": null,
"trigger": "interval",
"seconds": 10800
},
{
"id": "4",
"func": "jobs:php_safe_task",
"args": null,
"trigger": "interval",
"seconds": 30
}
],
"control": {
"open": true,
"day": 30
}
}

1006
config/weak_pass.txt Normal file

File diff suppressed because it is too large Load Diff