Add load balancer (#453)

This commit is contained in:
Saeed Vaziry
2025-01-30 23:52:51 +01:00
committed by GitHub
parent 53e20cbc2a
commit 6966f06b1a
54 changed files with 3128 additions and 1833 deletions

View 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';
}

View File

@ -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';
}