36 lines
1.5 KiB
PHP
36 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* Configuration file for SemapForm PHP Application
|
|
*
|
|
* Copy this file and adjust values for your environment.
|
|
* For production, consider loading from environment variables or a .env file
|
|
*/
|
|
|
|
// Error reporting (set to 0 in production)
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', 1);
|
|
|
|
// Email configuration
|
|
define('MAIL_ENABLED', true);//getenv('MAIL_ENABLED') !== false ? filter_var(getenv('MAIL_ENABLED'), FILTER_VALIDATE_BOOLEAN) : true);
|
|
define('SMTP_HOST', 'smtp.ph-freiburg.de');//getenv('SMTP_HOST') ?: 'smtp.ph-freiburg.de');
|
|
define('SMTP_PORT', 587);//getenv('SMTP_PORT') ?: 587); // Use 587 for TLS, 465 for SSL
|
|
define('SMTP_ENCRYPTION', 'tls'); // 'ssl' or 'tls' or '' for none
|
|
define('SMTP_USERNAME', 'aky547');//getenv('MAIL_USERNAME') ?: 'aky547');
|
|
define('SMTP_PASSWORD', 'CMcDna3qPh2*n');//getenv('MAIL_PASSWORD') ?: 'CMcDna3qPh2*n');
|
|
define('MAIL_FROM', 'alexander.kirchner@ph-freiburg.de');//getenv('MAIL_FROM') ?: 'alexander.kirchner@ph-freiburg.de');
|
|
define('MAIL_TO', 'kirchneralexander020@gmail.com');//getenv('MAIL_TO') ?: 'kirchneralexander@proton.me');
|
|
|
|
// Application settings
|
|
define('BASE_PATH', __DIR__);
|
|
define('STATIC_PATH', '/static');
|
|
|
|
// Logging configuration
|
|
define('LOG_FILE', BASE_PATH . '/mail.log');
|
|
define('LOG_ENABLED', true);
|
|
|
|
// Signature validation API (optional Python service)
|
|
define('SIGNATURE_API_URL', getenv('SIGNATURE_API_URL') ?: 'http://localhost:8001');
|
|
|
|
// Email regex pattern
|
|
define('EMAIL_REGEX', '/^[^@\s]+@[^@\s]+\.[^@\s]+$/');
|