Enhance WHMCS integration with mTLS support and product mapping features. Added mTLS configuration options, updated API endpoints for mTLS status and fingerprint registration, and implemented product validation API. Updated database schema and documentation accordingly.
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 8s
CI / Go — edge-gateway build (push) Successful in 18s

This commit is contained in:
smueller
2026-06-30 13:17:12 +02:00
parent 4b20efe4bc
commit 316679a913
34 changed files with 1174 additions and 30 deletions

View File

@@ -44,6 +44,21 @@ CREATE TABLE IF NOT EXISTS `mod_hexagamecloud_reconciliation` (
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `mod_hexagamecloud_product_mappings` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`whmcs_product_id` int unsigned NOT NULL,
`whmcs_product_name` varchar(128) NOT NULL DEFAULT '',
`plan_slug` varchar(64) NOT NULL,
`default_edition` varchar(16) NOT NULL DEFAULT 'JAVA',
`default_software` varchar(32) NOT NULL DEFAULT 'VANILLA',
`default_version` varchar(16) NOT NULL DEFAULT '1.21.1',
`is_active` tinyint(1) NOT NULL DEFAULT 1,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `whmcs_product_id` (`whmcs_product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT IGNORE INTO `mod_hexagamecloud_installations` (`id`, `updated_at`) VALUES (1, UTC_TIMESTAMP());
INSERT IGNORE INTO `mod_hexagamecloud_sync_cursors` (`id`, `updated_at`) VALUES (1, UTC_TIMESTAMP());

View File

@@ -0,0 +1,14 @@
CREATE TABLE IF NOT EXISTS `mod_hexagamecloud_product_mappings` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`whmcs_product_id` int unsigned NOT NULL,
`whmcs_product_name` varchar(128) NOT NULL DEFAULT '',
`plan_slug` varchar(64) NOT NULL,
`default_edition` varchar(16) NOT NULL DEFAULT 'JAVA',
`default_software` varchar(32) NOT NULL DEFAULT 'VANILLA',
`default_version` varchar(16) NOT NULL DEFAULT '1.21.1',
`is_active` tinyint(1) NOT NULL DEFAULT 1,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `whmcs_product_id` (`whmcs_product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;