Skip to content

Commit

Permalink
docs: add create token commands
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotcorreia committed Nov 7, 2024
1 parent 89ac953 commit 762607a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .meilisearch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Meilisearch

## Commands to generate keys

```sh
curl https://meilisearch.diogotc.com/keys \
-H "Authorization: Bearer $MEILI_TOKEN" \
--json '{"actions": ["search"], "indexes": ["resumos-leic"], "expiresAt": null, "description": "Search key for Resumos LEIC"}'
```

```sh
curl https://meilisearch.diogotc.com/keys \
-H "Authorization: Bearer $MEILI_TOKEN" \
--json '{"actions": ["documents.*", "indexes.*", "settings.*"], "indexes": ["resumos-leic"], "expiresAt": null, "description": "Scraping key for Resumos LEIC"}'
```
2 changes: 1 addition & 1 deletion .meilisearch/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'

services:
meilisearch:
image: getmeili/meilisearch:v0.20.0
image: getmeili/meilisearch:v1.7.6
ports:
- 7700:7700
volumes:
Expand Down

0 comments on commit 762607a

Please sign in to comment.