Adapt deployment for Dokploy
Replace the Gitea Actions SSH deploy with a Docker image (serversideup/php fpm-nginx) and docker-compose setup. Store the SQLite database inside the persistent storage volume, trust the reverse proxy, and move admin credentials into config so they work with cached configuration. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,8 +26,8 @@ Route::get('/thanks', [PokerController::class, 'thanks'])->name('vote.thanks');
|
||||
Route::prefix('admin')->group(function () {
|
||||
Route::match(['get', 'post'], '/login', function () {
|
||||
if (isset($_SERVER['PHP_AUTH_USER'])) {
|
||||
if ($_SERVER['PHP_AUTH_USER'] === env('ADMIN_USER') &&
|
||||
$_SERVER['PHP_AUTH_PW'] === env('ADMIN_PASS')) {
|
||||
if ($_SERVER['PHP_AUTH_USER'] === config('admin.user') &&
|
||||
$_SERVER['PHP_AUTH_PW'] === config('admin.password')) {
|
||||
session(['admin_logged_in' => true]);
|
||||
return redirect('/admin/sessions');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user