cinema-studio-pro/get_config.php
Simeon.Schecter c8326e6ddd Rebrand to Lux Studio + Video Gen + Project Management
Major Features:
- Rebrand from Cinema Studio Pro to Lux Studio
- New logo and branding (orange/gold theme)
- Video generation with Veo 3.1 (I2V and T2V)
- Project-first workflow with IndexedDB storage
- AI prompt optimizer with intelligent inference

Video Gen:
- Duration (4s/6s/8s), aspect ratio (16:9/9:16), resolution
- Reference image support for I2V
- Aspect ratio mismatch warnings
- Frame extraction from generated videos
- Video streaming with HTTP Range support

UI/UX:
- Tab navigation with underline style
- Portrait format adaptive display
- Editable optimized prompts with [AI suggestions]
- Auto-save to active project

Security:
- Remove config.php from tracking (contains API key)
- Add comprehensive .gitignore
- Remove uploaded session files from repo

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 21:02:28 -05:00

32 lines
882 B
PHP

<?php
/**
* API endpoint to safely provide configuration to frontend
* Only exposes necessary values, not sensitive configuration
*/
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, OPTIONS');
header('Access-Control-Allow-Headers: Content-Type');
// Handle preflight requests
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
http_response_code(200);
exit;
}
// Only allow GET requests
if ($_SERVER['REQUEST_METHOD'] !== 'GET') {
http_response_code(405);
echo json_encode(['error' => 'Method not allowed']);
exit;
}
// Load configuration
require_once __DIR__ . '/config.php';
// Return only the API key for frontend Gemini calls
// In production, you might want to add authentication here
echo json_encode([
'apiKey' => defined('GEMINI_API_KEY') ? GEMINI_API_KEY : null
]);