mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-23 20:25:39 +00:00
fix(v5): defer production runtime activation
Remove Flux token provisioning and container role handling from production. Restore private server IP support and document the activation checklist.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use App\Rules\ValidServerIp;
|
||||
use Tests\TestCase;
|
||||
|
||||
uses(TestCase::class);
|
||||
|
||||
it('accepts private and reserved IP addresses like the next branch', function (string $ip) {
|
||||
$rule = new ValidServerIp;
|
||||
$failCalled = false;
|
||||
|
||||
$rule->validate('ip', $ip, function () use (&$failCalled): void {
|
||||
$failCalled = true;
|
||||
});
|
||||
|
||||
expect($failCalled)->toBeFalse();
|
||||
})->with([
|
||||
'private IPv4' => '192.168.1.10',
|
||||
'loopback IPv4' => '127.0.0.1',
|
||||
'link-local IPv4' => '169.254.1.10',
|
||||
'loopback IPv6' => '::1',
|
||||
'unique local IPv6' => 'fd00::1',
|
||||
]);
|
||||
Reference in New Issue
Block a user