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:
|
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