Initial commit - Mini CMS complet (PHP + Docker + MinIO)

This commit is contained in:
Aya Tess tess
2025-11-01 16:42:38 +01:00
commit 9a57013505
3035 changed files with 131442 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
require_once 'vendor/autoload.php';
use Aws\S3\S3Client;
$minioClient = new S3Client([
'version' => 'latest',
'region' => 'us-east-1',
'endpoint' => 'http://minio:9000', // correspond au nom du service Docker
'use_path_style_endpoint' => true,
'credentials' => [
'key' => getenv('MINIO_ROOT_USER') ?: 'minioadmin',
'secret' => getenv('MINIO_ROOT_PASSWORD') ?: 'minioadmin',
],
]);
$bucketName = 'bucketforum'; // ✅ ton bucket créé automatiquement au démarrage
?>