hello aapanel,
i'll try create reverse proxy using api, but api url notfound
/**
* Create a reverse proxy configuration in aaPanel
*/
public function createProxy(string $siteName, string $proxyName, string $targetHost, int $targetPort, string $targetDomain, int $proxyType = 1, int $cacheTime = 0, int $cacheLevel = 0, int $advancedSettings = 0, ?array $subFilter = null): array
{
$proxyParams = [
'sitename' => $siteName,
'proxyname' => $proxyName,
'proxysite' => "http://{$targetHost}:{$targetPort}",
'todomain' => $targetDomain,
'type' => $proxyType,
'cachetime' => $cacheTime,
'cache' => $cacheLevel,
'advanced' => $advancedSettings,
'subfilter' => is_array($subFilter) ? json_encode($subFilter) : '[]'
];
return $this->request('/site?action=CreateProxy', $proxyParams);
}