fix: increase upload limits and timeouts for backup restoration
This commit is contained in:
@@ -34,7 +34,8 @@ export default function EmergencyBackupPage() {
|
||||
}
|
||||
} catch (err) {
|
||||
setStatus('error');
|
||||
setMessage('Erro de conexão ao restaurar backup.');
|
||||
setMessage('A conexão caiu, mas o servidor pode ainda estar processando. Aguarde 2 minutos e tente logar. Se não funcionar, verifique os logs do Dokploy.');
|
||||
console.error('Erro de restauração:', err);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -78,8 +79,8 @@ export default function EmergencyBackupPage() {
|
||||
|
||||
{message && (
|
||||
<div className={`p-4 rounded-lg text-center text-sm font-medium ${status === 'success' ? 'bg-emerald-500/20 text-emerald-400 border border-emerald-500/30' :
|
||||
status === 'error' ? 'bg-rose-500/20 text-rose-400 border border-rose-500/30' :
|
||||
'bg-blue-500/10 text-blue-400 border border-blue-500/20'
|
||||
status === 'error' ? 'bg-rose-500/20 text-rose-400 border border-rose-500/30' :
|
||||
'bg-blue-500/10 text-blue-400 border border-blue-500/20'
|
||||
}`}>
|
||||
{message}
|
||||
</div>
|
||||
|
||||
@@ -6,6 +6,15 @@ import jwt from 'jsonwebtoken';
|
||||
import JSZip from 'jszip';
|
||||
import { PutObjectCommand } from '@aws-sdk/client-s3';
|
||||
|
||||
export const maxDuration = 300; // 5 minutos de execução
|
||||
export const config = {
|
||||
api: {
|
||||
bodyParser: {
|
||||
sizeLimit: '100mb',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
async function authenticate() {
|
||||
const cookieStore = await cookies();
|
||||
const token = cookieStore.get('auth_token')?.value;
|
||||
|
||||
Reference in New Issue
Block a user