forked from lix-project/hydra
Fix insecure advice in the manual
Bring the manual in line with the configuration documentation
This commit is contained in:
parent
8f05b797e9
commit
c737bed42f
|
@ -378,13 +378,18 @@ This section describes how it can be implemented for `gitea`, but the approach f
|
|||
analogous:
|
||||
|
||||
* [Obtain an API token for your user](https://docs.gitea.io/en-us/api-usage/#authentication)
|
||||
* Add it to your `hydra.conf` like this:
|
||||
* Add it to a file which only users in the hydra group can read like this: see [including files](configuration.md#including-files) for more information
|
||||
```
|
||||
<gitea_authorization>
|
||||
your_username=your_token
|
||||
</gitea_authorization>
|
||||
```
|
||||
|
||||
* Include the file in your `hydra.conf` like this:
|
||||
``` nix
|
||||
{
|
||||
services.hydra-dev.extraConfig = ''
|
||||
<gitea_authorization>
|
||||
your_username=your_token
|
||||
</gitea_authorization>
|
||||
Include /path/to/secret/file
|
||||
'';
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue