Skip to content

Commit

Permalink
provide read access to anonymous users
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Mar 29, 2024
1 parent 38f087c commit de9fc5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
20 changes: 6 additions & 14 deletions .env.default
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
# Supabase
QUART_SUPABASE_URL=
QUART_SUPABASE_PROJECT_ID=
QUART_SUPABASE_ANON_KEY=
QUART_SUPABASE_ADMIN_USER_ID=
# Supabase read access for anonymous users
QUART_SUPABASE_URL=https://db.rogue-scholar.org
QUART_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFrbGV1ZGhuenJheGtxbmNnbmplIiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODUyNzg0NDYsImV4cCI6MjAwMDg1NDQ0Nn0.ozCcE0zNlTYgsG-WCgBwA3AsxEV7R47u8ohFesmCiaU

# Typesense
QUART_TYPESENSE_HOST=
QUART_TYPESENSE_API_KEY=
# Typesense read access for anonymous users
QUART_TYPESENSE_HOST=fmxr36stzdcbiw7hp-1.a1.typesense.net
QUART_TYPESENSE_ANON_KEY=mpfqMNXYoO2m7L56E0bWUfyJl1mWfZfT

# Pandoc
QUART_PANDOC_DATA_DIR=
QUART_PANDOC_PATH=/usr/bin/pandoc

# Sentry error tracking (optional)
QUART_SENTRY_DSN=
2 changes: 1 addition & 1 deletion api/typesense.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

typesense_client = TypesenseClient(
{
"api_key": environ["QUART_TYPESENSE_API_KEY"],
"api_key": environ["QUART_TYPESENSE_ANON_KEY"],
"nodes": [
{
"host": environ["QUART_TYPESENSE_HOST"],
Expand Down

0 comments on commit de9fc5c

Please sign in to comment.