Browse Source

add Gitea engine

Closes #1448
Closes #1447
Noémi Ványi 4 years ago
parent
commit
157fa1adb3
1 changed files with 13 additions and 0 deletions
  1. 13 0
      searx/settings.yml

+ 13 - 0
searx/settings.yml

@@ -301,6 +301,19 @@ engines:
     engine : github
     engine : github
     shortcut : gh
     shortcut : gh
 
 
+    # This a Gitea service. If you would like to use a different instance,
+    # change codeberg.org to URL of the desired Gitea host. Or you can create
+    # a new engine by copying this and changing the name, shortcut and search_url.
+  - name : codeberg
+    engine : json_engine
+    search_url : https://codeberg.org/api/v1/repos/search?q={query}&limit=10
+    url_query : html_url
+    title_query : name
+    content_query : description
+    categories : it
+    shortcut : cb
+    disabled : True
+
   - name : google
   - name : google
     engine : google
     engine : google
     shortcut : go
     shortcut : go