...
This commit is contained in:
		| @@ -21,7 +21,7 @@ The Gitea API is available with the slugs `/api/swagger#` after your Gitea domai | ||||
|  | ||||
| - For ThreeFold, we use the following Gitea API: | ||||
| ``` | ||||
| https://git.ourworld.tf/api/swagger#/ | ||||
| https://git.threefold.info/api/swagger#/ | ||||
| ``` | ||||
|  | ||||
| You can access different levels of the Gitea instance: | ||||
| @@ -48,7 +48,7 @@ For example, we take the raw content of a file: | ||||
|  | ||||
| ``` | ||||
| curl -X 'GET' \ | ||||
|   'https://git.ourworld.tf/api/v1/repos/tfgrid/info_tfgrid/raw/heroscript%2Fduniayetu%2Fbook_collections.md?ref=main' \ | ||||
|   'https://git.threefold.info/api/v1/repos/tfgrid/info_tfgrid/raw/heroscript%2Fduniayetu%2Fbook_collections.md?ref=main' \ | ||||
|   -H 'accept: application/json' | ||||
| ``` | ||||
|  | ||||
| @@ -56,7 +56,7 @@ We can save this in a file by adding `> filename.txt` after the line above: | ||||
|  | ||||
| ``` | ||||
| curl -X 'GET' \ | ||||
|   'https://git.ourworld.tf/api/v1/repos/tfgrid/info_tfgrid/raw/heroscript%2Fduniayetu%2Fbook_collections.md?ref=main' \ | ||||
|   'https://git.threefold.info/api/v1/repos/tfgrid/info_tfgrid/raw/heroscript%2Fduniayetu%2Fbook_collections.md?ref=main' \ | ||||
|   -H 'accept: application/json' > filename.txt | ||||
| ``` | ||||
|  | ||||
| @@ -73,7 +73,7 @@ If you want to query information that is access-protected, such as a private rep | ||||
| Once this is done, every Swagger request you ask will be accompanied with the access token. | ||||
|  | ||||
| - Create an access token directly on Gitea | ||||
|   - Go to the `Applications` section of the `User Settings` [on Gitea](https://git.ourworld.tf/user/settings/applications) | ||||
|   - Go to the `Applications` section of the `User Settings` [on Gitea](https://git.threefold.info/user/settings/applications) | ||||
|   - Under `Manage Access Tokens`, choose a `Token Name` | ||||
|   - Select either ̀`Public only` or `All (public, private and limited)`. For private access, choose the latter | ||||
|   - You must select at least one permission to create a token. Click on `Select permissions` and choose the permissions for your token | ||||
|   | ||||
| @@ -23,7 +23,7 @@ | ||||
|  | ||||
| We present a basic guide for Gitea, a forge software package for hosting software development version control using Git as well as other collaborative features like bug tracking, code review, continuous integration, kanban boards, tickets, and wikis. | ||||
|  | ||||
| ThreeFold hosts its own git server on [Gitea OurWorld](https://git.ourworld.tf). We will be using OurWorld's Gitea instance for this guide. | ||||
| ThreeFold hosts its own git server on [Gitea OurWorld](https://git.threefold.info). We will be using OurWorld's Gitea instance for this guide. | ||||
|  | ||||
| ## Prerequisites | ||||
|  | ||||
| @@ -38,7 +38,7 @@ You should have git installed on your computer to work easily with Gitea. It is | ||||
|  | ||||
| ## Register | ||||
|  | ||||
| - Go to the main gitea URL, e.g. [https://git.ourworld.tf](https://git.ourworld.tf) | ||||
| - Go to the main gitea URL, e.g. [https://git.threefold.info](https://git.threefold.info) | ||||
| - On the top right click on `Register` | ||||
| - Set your credentials | ||||
|   - Enter a `Username` | ||||
| @@ -50,7 +50,7 @@ You should have git installed on your computer to work easily with Gitea. It is | ||||
|  | ||||
| ## Sign In | ||||
|  | ||||
| - Go to the main Gitea URL, e.g. [https://git.ourworld.tf](https://git.ourworld.tf) | ||||
| - Go to the main Gitea URL, e.g. [https://git.threefold.info](https://git.threefold.info) | ||||
| - On the top right click on `Sign In` | ||||
| - Set your credentials | ||||
|   - Enter your `Username` or your `Email Address` | ||||
| @@ -69,7 +69,7 @@ ssh-keygen | ||||
| ``` | ||||
| cat ~/.ssh/id_rsa.pub | ||||
| ``` | ||||
| - [Add the SSH public key on git.ourworld.tf](https://git.ourworld.tf/user/settings/keys) | ||||
| - [Add the SSH public key on git.threefold.info](https://git.threefold.info/user/settings/keys) | ||||
|   - Click on `Add Key` on the top right | ||||
|   - Paste the public key in `Content` | ||||
|   - The `Key Name` will be added automatically | ||||
| @@ -77,7 +77,7 @@ cat ~/.ssh/id_rsa.pub | ||||
|  | ||||
|  | ||||
|  | ||||
| - Optional: on git.ourworld.tf, verify the key. Make sure to put the proper token. | ||||
| - Optional: on git.threefold.info, verify the key. Make sure to put the proper token. | ||||
| ``` | ||||
| echo -n 'token' | ssh-keygen -Y sign -n gitea -f ~/.ssh/id_rsa | ||||
| ``` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user