# Gitea

Engine to search in collaborative software platforms based on Gitea or Forgejo.

## Configuration

The engine has the following mandatory setting:

- `base_url`

Optional settings are:

- `sort`

- `order`

- `page_size`

    - name: gitea.com
      engine: gitea
      base_url: https://gitea.com
      shortcut: gitea

    - name: forgejo.com
      engine: gitea
      base_url: https://code.forgejo.org
      shortcut: forgejo

If you would like to use additional instances, just configure new engines in the settings and set the `base_url`.

## Implementation

searx.engines.gitea.base_url: str = ''

  URL of the Gitea instance.

searx.engines.gitea.order = 'desc'

  Sort order, possible values:

  - `desc` (default)

  - `asc`

searx.engines.gitea.page_size: int = 10

  Maximum number of results per page (default 10).

searx.engines.gitea.sort: str = 'updated'

  Sort criteria, possible values:

  - `updated` (default)

  - `alpha`

  - `created`

  - `size`

  - `id`