27 lines
1.1 KiB
PHP
27 lines
1.1 KiB
PHP
<?php
|
|
// php/config.php
|
|
|
|
// Database credentials
|
|
define('DB_HOST', 'localhost');
|
|
define('DB_USER', 'multichat_user'); // Replace with your MySQL username
|
|
define('DB_PASS', '!Bdsbkh2!'); // Replace with your MySQL password
|
|
define('DB_NAME', 'multichat_overlay');
|
|
|
|
// Twitch API credentials
|
|
define('TWITCH_CLIENT_ID', 'YOUR_TWITCH_CLIENT_ID'); // Replace with your Twitch Client ID
|
|
define('TWITCH_CLIENT_SECRET', 'YOUR_TWITCH_CLIENT_SECRET'); // Replace with your Twitch Client Secret
|
|
// For local development, use 'http://localhost/auth.php'. For external access, use your domain (e.g., 'https://multichat.ramforth.net/auth.php').
|
|
define('TWITCH_REDIRECT_URI', 'http://localhost/auth.php');
|
|
|
|
// Session secret for secure cookies
|
|
define('SESSION_SECRET', 'YOUR_VERY_LONG_AND_RANDOM_SECRET_KEY'); // IMPORTANT: Change this to a strong, random string
|
|
|
|
// WebSocket server address
|
|
define('WEBSOCKET_HOST', 'localhost');
|
|
define('WEBSOCKET_PORT', 8080);
|
|
|
|
// Base URL for the application
|
|
// For local development, use 'http://localhost'. For external access, use your domain (e.g., 'https://multichat.ramforth.net').
|
|
define('BASE_URL', 'http://localhost');
|
|
?>
|