- sogoctl: supervisor avec health checks et restart auto - sogoway: gateway HTTP, auth JWT, routing par hostname - sogoms-db: microservice MariaDB avec pool par application - Protocol IPC Unix socket JSON length-prefixed - Config YAML multi-application (prokov) - Deploy script pour container Alpine gw3 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
552 B
PHP
28 lines
552 B
PHP
<?php
|
|
/**
|
|
* Configuration de l'application
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
// Environnement : 'dev' ou 'prod'
|
|
define('APP_ENV', 'dev');
|
|
|
|
// Base de données
|
|
define('DB_HOST', '13.23.33.4'); // container incus maria3
|
|
define('DB_NAME', 'prokov');
|
|
define('DB_USER', 'prokov_user');
|
|
define('DB_PASS', 'CHANGE_ME_PASSWORD');
|
|
|
|
// Session
|
|
define('SESSION_LIFETIME', 86400 * 7); // 7 jours
|
|
|
|
// Debug
|
|
if (APP_ENV === 'dev') {
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', '1');
|
|
} else {
|
|
error_reporting(0);
|
|
ini_set('display_errors', '0');
|
|
}
|