fix: Gitea Traefik routing and connection pool optimization
Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Failing after 10m14s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Has been skipped
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
Security Vulnerability Scan / Check for Dependency Changes (push) Failing after 11m25s
Security Vulnerability Scan / Composer Security Audit (push) Has been cancelled
Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Failing after 10m14s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Has been skipped
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
Security Vulnerability Scan / Check for Dependency Changes (push) Failing after 11m25s
Security Vulnerability Scan / Composer Security Audit (push) Has been cancelled
- Remove middleware reference from Gitea Traefik labels (caused routing issues) - Optimize Gitea connection pool settings (MAX_IDLE_CONNS=30, authentication_timeout=180s) - Add explicit service reference in Traefik labels - Fix intermittent 504 timeouts by improving PostgreSQL connection handling Fixes Gitea unreachability via git.michaelschiemer.de
This commit is contained in:
42
tests/debug/test-auth-capture.php
Normal file
42
tests/debug/test-auth-capture.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||
|
||||
use App\Framework\HttpClient\AuthConfig;
|
||||
use App\Framework\HttpClient\AuthType;
|
||||
use App\Framework\HttpClient\ClientOptions;
|
||||
|
||||
// Test 1: Create AuthConfig directly
|
||||
echo "Test 1: Direct AuthConfig creation\n";
|
||||
$auth = AuthConfig::basic('testuser', 'testpass');
|
||||
var_dump($auth);
|
||||
echo "Auth type: " . ($auth->type->value ?? 'NULL') . "\n";
|
||||
echo "Auth type is null: " . (is_null($auth->type) ? 'YES' : 'NO') . "\n\n";
|
||||
|
||||
// Test 2: Create ClientOptions with auth
|
||||
echo "Test 2: ClientOptions with auth\n";
|
||||
$options = new ClientOptions(
|
||||
timeout: 10,
|
||||
auth: $auth
|
||||
);
|
||||
var_dump($options->auth);
|
||||
echo "Options auth type: " . ($options->auth->type->value ?? 'NULL') . "\n";
|
||||
echo "Options auth type is null: " . (is_null($options->auth->type) ? 'YES' : 'NO') . "\n\n";
|
||||
|
||||
// Test 3: ClientOptions with() method
|
||||
echo "Test 3: ClientOptions with() method\n";
|
||||
$baseOptions = new ClientOptions(timeout: 10);
|
||||
$newOptions = $baseOptions->with(['auth' => $auth]);
|
||||
var_dump($newOptions->auth);
|
||||
echo "New options auth type: " . ($newOptions->auth->type->value ?? 'NULL') . "\n";
|
||||
echo "New options auth type is null: " . (is_null($newOptions->auth->type) ? 'YES' : 'NO') . "\n\n";
|
||||
|
||||
// Test 4: Check if readonly classes preserve properties
|
||||
echo "Test 4: Readonly class property preservation\n";
|
||||
$options1 = new ClientOptions(timeout: 10, auth: $auth);
|
||||
$options2 = $options1; // Assignment
|
||||
echo "Are they the same object? " . (($options1 === $options2) ? 'YES' : 'NO') . "\n";
|
||||
echo "Options1 auth type: " . ($options1->auth->type->value ?? 'NULL') . "\n";
|
||||
echo "Options2 auth type: " . ($options2->auth->type->value ?? 'NULL') . "\n";
|
||||
Reference in New Issue
Block a user