Fix insecure advice in the manual

Bring the manual in line with the configuration documentation
This commit is contained in:
MaxHearnden 2022-10-19 16:24:01 +01:00 committed by GitHub
parent 8f05b797e9
commit c737bed42f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
``` nix ```
{
services.hydra-dev.extraConfig = ''
<gitea_authorization> <gitea_authorization>
your_username=your_token your_username=your_token
</gitea_authorization> </gitea_authorization>
```
* Include the file in your `hydra.conf` like this:
``` nix
{
services.hydra-dev.extraConfig = ''
Include /path/to/secret/file
''; '';
} }
``` ```