Merge pull request #1255 from MaxHearnden/patch-1

Fix insecure advice in the manual
This commit is contained in:
Janne Heß 2022-10-21 10:00:52 +02:00 committed by GitHub
commit a67d3b47d2
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
''; '';
} }
``` ```