Enable rate limiting and compression for NGINX

This commit is contained in:
thiloho
2024-09-20 17:47:25 +02:00
parent 86ab737429
commit c11d73c328
3 changed files with 15 additions and 3 deletions

View File

@@ -60,6 +60,7 @@ export const actions: Actions = {
Authorization: `Bearer ${cookies.get("session_token")}`
},
body: JSON.stringify({
category_name: data.get("category-name"),
category_weight: data.get("category-weight")
})
}

View File

@@ -89,6 +89,11 @@
>
<input type="hidden" name="category-id" value={id} />
<label>
Name:
<input type="text" name="category-name" value={category_name} maxlength="50" required />
</label>
<label>
Weight:
<input type="number" name="category-weight" value={category_weight} min="0" />