|
|
<?php
|
|
|
|
|
|
// CORS – wie in deinem Beispiel (Wildcard-Ports & Subdomains unterstützt)
|
|
|
const WH_ALLOWED_ORIGINS = [
|
|
|
// Produktion
|
|
|
'https://windesign.at',
|
|
|
'https://hedgehog.windesign.at',
|
|
|
'https://api.windesign.at',
|
|
|
|
|
|
// FlutLab
|
|
|
'https://preview.flutlab.io',
|
|
|
'https://*.flutlab.io',
|
|
|
|
|
|
// Entwicklung – beliebiger Port:
|
|
|
'http://localhost:*',
|
|
|
'http://127.0.0.1:*',
|
|
|
'https://localhost:*',
|
|
|
'https://127.0.0.1:*',
|
|
|
];
|
|
|
|
|
|
// DB
|
|
|
define('DATABASE_NAME', 'hedgehogs');
|
|
|
define('DATABASE_USER', 'hedgehogs');
|
|
|
define('DATABASE_PASSWORD', 'WeissIchNicht8');
|
|
|
define('DATABASE_HOST', 'localhost');
|
|
|
|
|
|
// Uploads (Dateisystem-Pfade relativ zu hedgehogs.php im Webroot)
|
|
|
define('UPLOAD_DIR', __DIR__ . '/hedgehogs/uploads');
|
|
|
define('UPLOAD_THUMB_DIR', __DIR__ . '/hedgehogs/uploads/thumbs');
|
|
|
|
|
|
// Öffentliche Basis-URL zu genau diesen Ordnern
|
|
|
define('UPLOAD_BASE_URL', 'https://api.windesign.at/hedgehogs/uploads');
|
|
|
|
|
|
define('MAX_IMAGE_SIZE', 8 * 1024 * 1024); // Legacy Limit f<>r Bilder
|
|
|
// Neues, gemeinsames Limit f<>r Bilder/Videos (an php.ini upload_max_filesize anpassen!)
|
|
|
if (!defined('MAX_MEDIA_SIZE')) {
|
|
|
define('MAX_MEDIA_SIZE', 250 * 1024 * 1024); // 250 MB
|
|
|
}
|
|
|
if (!defined('ALLOWED_MIME')) {
|
|
|
define('ALLOWED_MIME', json_encode(['image/jpeg','image/png','image/webp','image/gif']));
|
|
|
}
|
|
|
|
|
|
// JWT / Auth
|
|
|
define('JWT_SECRET', 'sehrlangesjwtsecretdasswirklichsehrgeheimist');
|
|
|
define('JWT_ISSUER', 'https://windesign.at');
|
|
|
define('JWT_ACCESS_TTL', 900); // 15 Minuten
|
|
|
define('JWT_REFRESH_TTL', 60*60*24*30); // 30 Tage
|
|
|
|
|
|
// Mail-Konfiguration
|
|
|
define('SMTP_HOST', 'smtp-mail.outlook.com');
|
|
|
define('SMTP_PORT', 587);
|
|
|
define('SMTP_USER', 'Herwig.Birke@windesign.at');
|
|
|
define('SMTP_PASS', 'GehtDichNixAn1');
|
|
|
define('SMTP_SECURE', 'tls'); // oder 'ssl'
|
|
|
define('MAIL_FROM', 'Herwig.Birke@windesign.at');
|
|
|
define('MAIL_FROM_NAME', 'Hedgehogs');
|
|
|
define('VERIFY_BASE_URL', 'https://api.windesign.at/hedgehogs.php');
|
|
|
define('EMAIL_DEV_MODE', true);
|
|
|
|
|
|
?>
|