Skip to content

Commit

Permalink
add creation of MeiliSearch keys to justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriamanitra committed Oct 10, 2022
1 parent e1c6f25 commit 84eb0c5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
10 changes: 9 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ configure-meili:
curl -X PATCH "$VITE_MEILI_URL/indexes/clashes/settings" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MEILI_MASTER_KEY" \
--data-binary @meili-indexes-clashes-settings.json
--data-binary @meili_config/indexes-clashes-settings.json
curl -X POST "$VITE_MEILI_URL/keys" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MEILI_MASTER_KEY" \
--data-binary @meili_config/make-public-key.json
curl -X POST "$VITE_MEILI_URL/keys" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MEILI_MASTER_KEY" \
--data-binary @meili_config/make-update-key.json

check-new-clashes: up
python3 scripts/check_new_clashes.py
Expand Down
File renamed without changes.
10 changes: 10 additions & 0 deletions meili_config/make-public-key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "Public search key",
"actions": [
"search"
],
"indexes": [
"clashes"
],
"expiresAt": null
}
12 changes: 12 additions & 0 deletions meili_config/make-update-key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Key for updating clashes",
"actions": [
"documents.add",
"documents.get",
"documents.delete"
],
"indexes": [
"clashes"
],
"expiresAt": null
}

0 comments on commit 84eb0c5

Please sign in to comment.