Files
hedgehog/api/hedgehogs-settings.php
T
2025-10-23 23:16:18 +02:00

57 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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);
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);
?>