Add staff password reset, raise code upload limit, and guard restore sizing.

Admins and technical staff can reset passwords via PATCH /users/:id/password with scoped permissions for technical users; deploy/source uploads allow up to 10GiB and block deploy when allocated storage is smaller than uploaded archive or DB dump, with an inline error modal.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
keyhan
2026-05-16 01:03:07 +03:30
parent 67b41ae311
commit a7293973d5
6 changed files with 332 additions and 40 deletions
@@ -70,7 +70,7 @@ export class ApplicationsController {
@ApiOperation({ summary: 'Upload application code (zip file)' })
@ApiConsumes('multipart/form-data')
@UseInterceptors(FileInterceptor('file', {
limits: { fileSize: 200 * 1024 * 1024 }, // 200MB (WordPress sites can be large)
limits: { fileSize: 10 * 1024 * 1024 * 1024 }, // 10 GiB max application archive
}))
async uploadCode(
@Param('id') id: string,