chore: 上线前加固——调度器/登录限流/env 模板补全

- routes/console.php:注册每日数据库备份(03:00)+ 前台页面缓存清理(04:00)
- 前台登录/注册 POST 加 throttle:6,1 防爆破
- .env.example 补 S3/LLM/MARKET/UPLOAD_DISK 配置项,新部署不再漏配
This commit is contained in:
ak
2026-08-13 03:32:27 +08:00
parent f1b9d1e1c3
commit 6f13d13d5a
3 changed files with 41 additions and 9 deletions
+4 -4
View File
@@ -66,15 +66,15 @@ Route::get('/comments', fn () => redirect()->route('comments', [], 301));
Route::get('/login.shtml', [AuthController::class, 'showLogin'])->name('login');
Route::get('/login', fn () => redirect()->route('login', [], 301));
Route::post('/login.shtml', [AuthController::class, 'login']);
Route::post('/login', [AuthController::class, 'login']);
Route::post('/login.shtml', [AuthController::class, 'login'])->middleware('throttle:6,1');
Route::post('/login', [AuthController::class, 'login'])->middleware('throttle:6,1');
Route::post('/logout.shtml', [AuthController::class, 'logout'])->name('logout');
Route::post('/logout', [AuthController::class, 'logout']);
Route::get('/register.shtml', [AuthController::class, 'showRegister'])->name('register');
Route::get('/register', fn () => redirect()->route('register', [], 301));
Route::post('/register.shtml', [AuthController::class, 'register']);
Route::post('/register', [AuthController::class, 'register']);
Route::post('/register.shtml', [AuthController::class, 'register'])->middleware('throttle:6,1');
Route::post('/register', [AuthController::class, 'register'])->middleware('throttle:6,1');
Route::get('/profile.shtml', [AuthController::class, 'profile'])->middleware('auth')->name('profile');
Route::get('/profile', fn () => redirect()->route('profile', [], 301))->middleware('auth');