feat: Add complete Docker deployment with web-based setup wizard
Major additions: - Web-based setup wizard (setup.php, setup_wizard.php, setup-wizard.js) - Production Docker configuration (docker-compose.prod.yml, .env.production) - Database initialization SQL files (deploy/init_settings.sql) - Template builder system with drag-and-drop UI - Advanced features (OAuth, CDN, enhanced analytics, monetization) - Comprehensive documentation (deployment guides, quick start, feature docs) - Design system with accessibility and responsive layout - Deployment automation scripts (deploy.ps1, generate-secrets.ps1) Setup wizard allows customization of: - Platform name and branding - Domain configuration - Membership tiers and pricing - Admin credentials - Feature toggles Database includes 270+ tables for complete video streaming platform with advanced features for analytics, moderation, template building, and monetization. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -9,14 +9,39 @@
|
||||
encode zstd gzip
|
||||
file_server
|
||||
|
||||
# Rewrite root to index.php
|
||||
@root path /
|
||||
rewrite @root /index.php
|
||||
# Token System Routes (Direct handling)
|
||||
@token_purchase path /token_purchase /token-purchase /tokens
|
||||
rewrite @token_purchase /f_modules/m_frontend/m_donations/token_purchase.php
|
||||
|
||||
# Admin panel routing -> backend parser
|
||||
@token_redemption path /token_redemption /token-redemption
|
||||
rewrite @token_redemption /f_modules/m_frontend/m_donations/token_redemption.php
|
||||
|
||||
# Donation Routes
|
||||
@donate path /donate /donation
|
||||
rewrite @donate /f_modules/m_frontend/m_donations/rainforest_donation_form.php
|
||||
|
||||
# System Status Route
|
||||
@health path /health /status
|
||||
rewrite @health /status.php
|
||||
|
||||
# Upload Route (handled by parser)
|
||||
@upload path /upload
|
||||
rewrite @upload /parser.php
|
||||
|
||||
# Authentication Routes (handled by parser)
|
||||
@signin path /signin /login
|
||||
rewrite @signin /parser.php
|
||||
|
||||
@signup path /signup /register
|
||||
rewrite @signup /parser.php
|
||||
|
||||
# Admin panel routing
|
||||
@admin path /admin /admin/*
|
||||
rewrite @admin /f_modules/m_backend/parser.php
|
||||
# Single php_fastcgi block below handles all PHP
|
||||
rewrite @admin /admin.php
|
||||
|
||||
# Homepage (handled by parser)
|
||||
@root path /
|
||||
rewrite @root /parser.php
|
||||
|
||||
# Serve HLS (from SRS volume) under /hls
|
||||
handle_path /hls/* {
|
||||
@@ -28,7 +53,7 @@
|
||||
|
||||
# PHP with fallback to parser.php for non-existent paths
|
||||
php_fastcgi php:9000 {
|
||||
try_files {path} {path}/ /parser.php?{query}
|
||||
try_files {path} /parser.php?{query}
|
||||
}
|
||||
|
||||
# Preflight at a friendly path
|
||||
@@ -63,7 +88,7 @@
|
||||
|
||||
handle_errors {
|
||||
@notfound expression {http.error.status_code} == 404
|
||||
rewrite @notfound /parser.php?error=404
|
||||
rewrite @notfound /index.php?error=404
|
||||
php_fastcgi php:9000
|
||||
}
|
||||
|
||||
@@ -71,4 +96,4 @@
|
||||
X-Content-Type-Options "nosniff"
|
||||
Referrer-Policy "strict-origin-when-cross-origin"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user