Skip to content

saveweb/saveweb-search-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

saveweb-search-backend

Installation

pip install -r requirements.txt

Setup environment variables

MEILI_URL # MeiliSearch host.
# default: "http://localhost:7700"
MEILI_KEY # MeiliSearch API key.
# default: '' (empty string)

STWP_SEARCH_MAX_LOAD # If the load is higher than this, API will return 503.
# default: cpu_count / 1.5
STWP_SEARCH_MAX_FLYING_OPS # If the number of flying requests is higher than this, API will return 503.
# default: $STWP_SEARCH_MAX_LOAD * 2 (min value: 1)
STWP_SEARCH_CORS # CORS Allow-Origin header, split by `,`
# default: *

Run

python saveweb-search-backend.py
# or
hypercorn --bind '[::]:8077' saveweb-search-backend:app # to customize the bind address

About

UglySearch - A full-text search engine for blog posts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages