Property::getServerIp(), 'redirect' => self::isHttpsRedirectEnabled(), ]); return $task['id'] ?? null; } public static function tmImportCustomCert(string $key, string $cert, ?string $chain = null): ?string { Property::set(WebInterface::PROP_TYPE, 'supplied'); $task = Taskmanager::submit('LighttpdHttps', [ 'importcert' => $cert, 'importkey' => $key, 'importchain' => $chain, 'redirect' => self::isHttpsRedirectEnabled(), ]); return $task['id'] ?? null; } public static function tmSetHttpRedirectMode(): ?string { if (Property::get(WebInterface::PROP_TYPE) === 'off') return null; $task = Taskmanager::submit('LighttpdHttps', array( 'redirectOnly' => true, 'redirect' => self::isHttpsRedirectEnabled(), )); return $task['id'] ?? null; } public static function getApiKey(): ?string { $key = Property::get(self::PROP_API_KEY, null); if (empty($key)) return null; return $key; } public static function setApiKey(?string $key): void { Property::set(self::PROP_API_KEY, empty($key) ? null : $key); } }