You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
</picture> GitHub and <imgsrc="https://gitlab.com/favicon.ico"width="16"height="16" /> GitLab. This section will guide you through configuring the repositories that Sourcebot indexes.
65
+
</picture> GitHub, <imgsrc="https://gitlab.com/favicon.ico"width="16"height="16" /> GitLab and <imgsrc="https://gitea.com/favicon.ico"width="16"height="16"> Gitea. This section will guide you through configuring the repositories that Sourcebot indexes.
66
66
67
67
1. Create a new folder on your machine that stores your configs and `.sourcebot` cache, and navigate into it:
Generate a Gitea access token [here](http://gitea.com/user/settings/applications). At minimum, you'll need to select the `read:repository` scope, but `read:user` and `read:organization` are required for the `user` and `org` fields of your config file:
You'll need to pass this environment variable each time you run Sourcebot:
257
+
258
+
<pre>
259
+
docker run -e <b>GITEA_TOKEN=my-secret-token</b> /* additional args */ ghcr.io/sourcebot-dev/sourcebot:latest
260
+
</pre>
261
+
262
+
</details>
263
+
217
264
</div>
218
265
219
266
## Using a self-hosted GitLab / GitHub instance
@@ -226,7 +273,7 @@ If you're using a self-hosted GitLab or GitHub instance with a custom domain, yo
226
273
227
274
1. Install <ahref="https://go.dev/doc/install"><imgsrc="https://go.dev/favicon.ico"width="16"height="16"> go</a> and <ahref="https://nodejs.org/"><imgsrc="https://nodejs.org/favicon.ico"width="16"height="16"> NodeJS</a>. Note that a NodeJS version of at least `21.1.0` is required.
228
275
229
-
2. Install [ctags](https://github.com/universal-ctags/ctags) (required by zoekt-indexserver)
276
+
2. Install [ctags](https://github.com/universal-ctags/ctags) (required by zoekt)
* The name of the environment variable that contains the token.
122
+
*/
123
+
env: string;
124
+
};
125
+
/**
126
+
* The URL of the Gitea host. Defaults to https://gitea.com
127
+
*/
128
+
url?: string;
129
+
/**
130
+
* List of organizations to sync with. All repositories in the organization visible to the provided `token` (if any) will be synced, unless explicitly defined in the `exclude` property. If a `token` is provided, it must have the read:organization scope.
131
+
*/
132
+
orgs?: string[];
133
+
/**
134
+
* List of individual repositories to sync with. Expected to be formatted as '{orgName}/{repoName}' or '{userName}/{repoName}'.
135
+
*/
136
+
repos?: string[];
137
+
/**
138
+
* List of users to sync with. All repositories that the user owns will be synced, unless explicitly defined in the `exclude` property. If a `token` is provided, it must have the read:user scope.
139
+
*/
140
+
users?: string[];
141
+
exclude?: {
142
+
/**
143
+
* Exlcude forked repositories from syncing.
144
+
*/
145
+
forks?: boolean;
146
+
/**
147
+
* Exlcude archived repositories from syncing.
148
+
*/
149
+
archived?: boolean;
150
+
/**
151
+
* List of individual repositories to exclude from syncing. Expected to be formatted as '{orgName}/{repoName}' or '{userName}/{repoName}'.
0 commit comments