Skip to content

exfreedomist/opensearch.exfreedomist.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opensearch.exfreedomist.com

Here is source of open version of torrents search engine (which use api.exfreedomist.com).

Structure

opensearch.exfreedomist.com
├── core (Python FastAPI routers)
├── static
    ├── css
    ├── images
    └── js
├── templates (HTML Jinja templates)
├── .env
├── docker-compose.yml (build)
└── main.py (entry point)

Dependencies

Linux/Ubuntu. In your system must be installed:

  • Redis database (do not forget to change the settings in .env). Need for correct cache subsystem working.
  • Docker-compose ver. 3.3

Deploy

docker-compose up --build -d

In this case you get local instance of search engine. Try in your browser:

http://localhost:31337

(by default port is 31337)

.env

Setup your instance.

For API endpoints and base redis settings clearly.

  • redis_ex_sec is time in seconds for decay redis board labels cache (by default 1 week)
  • redis_ex_cache_sec is time in seconds for decay redis magnets cache (by default 15 minutes)
  • token is for API endpoints requests. You can setup your personal token for debug cases.
  • static_prefix is path to static files. By default if /static and shared from container, but you can use this server behind Nginx and put static files to other dir.

About

Open source of torrents search engine which use on opensearch.exfreedomist.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published