feat: Prepare Zemailnator for Dokploy deployment
- Add highly optimized Dockerfile with Nginx and PHP-FPM 8.4 - Add docker-compose.yml configured with Redis and MariaDB 10.11 - Implement entrypoint.sh and supervisord.conf for background workers - Refactor legacy IMAP scripts into scheduled Artisan Commands - Secure app by removing old routes with hardcoded basic auth credentials - Configure email attachments to use Laravel Storage instead of insecure public/tmp
This commit is contained in:
@@ -2,11 +2,10 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Session;
|
||||
use Illuminate\Routing\Redirector;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use App\Models\Premium;
|
||||
use App\Models\ZEmail;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Routing\Redirector;
|
||||
|
||||
class AppController extends Controller
|
||||
{
|
||||
@@ -56,6 +55,7 @@ class AppController extends Controller
|
||||
|
||||
return to_route('mailbox');
|
||||
}
|
||||
|
||||
return to_route('home');
|
||||
}
|
||||
|
||||
@@ -86,6 +86,7 @@ class AppController extends Controller
|
||||
|
||||
return to_route('dashboard.premium');
|
||||
}
|
||||
|
||||
return to_route('dashboard');
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ class PaymentCancelController extends Controller
|
||||
|
||||
Log::info('PaymentCancelController: Cancellation page accessed', [
|
||||
'user_id' => auth()->id(),
|
||||
'session_token' => $sessionToken ? substr($sessionToken, 0, 20) . '...' : 'none',
|
||||
'session_token' => $sessionToken ? substr($sessionToken, 0, 20).'...' : 'none',
|
||||
'ip_address' => $request->ip(),
|
||||
'user_agent' => $request->userAgent(),
|
||||
]);
|
||||
@@ -48,4 +48,4 @@ class PaymentCancelController extends Controller
|
||||
'recentSubscription' => $recentSubscription,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class CheckUserBanned
|
||||
|
||||
Reference in New Issue
Block a user