mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Add load balancer (#453)
This commit is contained in:
16
app/Enums/LoadBalancerMethod.php
Normal file
16
app/Enums/LoadBalancerMethod.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use App\Traits\Enum;
|
||||
|
||||
final class LoadBalancerMethod
|
||||
{
|
||||
use Enum;
|
||||
|
||||
const ROUND_ROBIN = 'round-robin';
|
||||
|
||||
const LEAST_CONNECTIONS = 'least-connections';
|
||||
|
||||
const IP_HASH = 'ip-hash';
|
||||
}
|
@ -14,20 +14,5 @@ final class SiteType
|
||||
|
||||
const PHPMYADMIN = 'phpmyadmin';
|
||||
|
||||
public static function hasWebDirectory(): array
|
||||
{
|
||||
return [
|
||||
self::PHP,
|
||||
self::PHP_BLANK,
|
||||
self::LARAVEL,
|
||||
];
|
||||
}
|
||||
|
||||
public static function hasSourceControl(): array
|
||||
{
|
||||
return [
|
||||
self::PHP,
|
||||
self::LARAVEL,
|
||||
];
|
||||
}
|
||||
const LOAD_BALANCER = 'load-balancer';
|
||||
}
|
||||
|
Reference in New Issue
Block a user