forked from lix-project/hydra
Merge pull request #1255 from MaxHearnden/patch-1
Fix insecure advice in the manual
This commit is contained in:
commit
a67d3b47d2
|
@ -378,13 +378,18 @@ This section describes how it can be implemented for `gitea`, but the approach f
|
||||||
analogous:
|
analogous:
|
||||||
|
|
||||||
* [Obtain an API token for your user](https://docs.gitea.io/en-us/api-usage/#authentication)
|
* [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
|
``` nix
|
||||||
{
|
{
|
||||||
services.hydra-dev.extraConfig = ''
|
services.hydra-dev.extraConfig = ''
|
||||||
<gitea_authorization>
|
Include /path/to/secret/file
|
||||||
your_username=your_token
|
|
||||||
</gitea_authorization>
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue