mirror of
https://github.com/pelican-dev/panel.git
synced 2025-07-03 10:51:08 +02:00
Wip
This commit is contained in:
parent
36e2fa8e2b
commit
e15d515f71
@ -308,4 +308,10 @@ class Server extends Model
|
|||||||
|
|
||||||
return cache()->get("servers.$this->uuid.container.status") ?? 'missing';
|
return cache()->get("servers.$this->uuid.container.status") ?? 'missing';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getPrimaryEndpoint()
|
||||||
|
{
|
||||||
|
dd($this->ports);
|
||||||
|
dd($this->variables);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,9 @@ class StartupCommandService
|
|||||||
*/
|
*/
|
||||||
public function handle(Server $server, bool $hideAllValues = false): string
|
public function handle(Server $server, bool $hideAllValues = false): string
|
||||||
{
|
{
|
||||||
|
$endpoint = $server->getPrimaryEndpoint();
|
||||||
|
|
||||||
|
|
||||||
$find = ['{{SERVER_MEMORY}}', '{{SERVER_IP}}', '{{SERVER_PORT}}'];
|
$find = ['{{SERVER_MEMORY}}', '{{SERVER_IP}}', '{{SERVER_PORT}}'];
|
||||||
$replace = [$server->memory, $server->allocation->ip, $server->allocation->port];
|
$replace = [$server->memory, $server->allocation->ip, $server->allocation->port];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user