Skip to content

Commit

Permalink
add docs for signed push
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed May 22, 2023
1 parent 1d3e111 commit 938d645
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/content/doc/administration/customizing-gitea.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,22 @@ Place custom files in corresponding sub-folder under `custom/options`.

To add custom .gitignore, add a file with existing [.gitignore rules](https://git-scm.com/docs/gitignore) in it to `$GITEA_CUSTOM/options/gitignore`

## Customizing git config

Starting with Gitea 1.20, you can customize the git configuration via the `git.config` section.

### Enabling signed git pushes

To enable signed git pushes, set these two options:

````
[git.config]
receive.advertisePushOptions = true
receive.certNonceSeed = <randomstring>
````

`certNonceSeed` should be set to a sufficiently random string and be kept secret.

### Labels

Starting with Gitea 1.19, you can add a file that follows the [YAML label format](https://github.com/go-gitea/gitea/blob/main/options/label/Advanced.yaml) to `$GITEA_CUSTOM/options/label`:
Expand Down

0 comments on commit 938d645

Please sign in to comment.