Skip to content

Commit

Permalink
Add min requirements for servers (prevents bootloops)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsoft committed Nov 5, 2023
1 parent c49762f commit 885efee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ export const serverCreate = zod.object({
name: zod.string().min(3).max(20),
type: zod.nativeEnum(ServerTypes),
location,
limits,
limits: zod.object({
memory: limits.shape.memory.min(300, "Minimum memory is 300MB"),
disk: limits.shape.disk.min(200, "Minimum disk is 200MB"),
cpu: limits.shape.cpu.min(3, "Minimum cpu is 3% of a core")
}),
version: zod.string()
});

Expand Down

0 comments on commit 885efee

Please sign in to comment.