link token FAQ entry

This commit is contained in:
buchel_k committed 2025-05-07 08:32:36 +02:00
1 parent 398862161c
commit a78650ae3e
1 file changed
+3 -2
@@ -98,13 +98,14 @@ files::git:
Note that submodules are automatically initialized, if you wish different set `submodules: false`.
If you need to use a token to access the repository, you can
If you need to use a token to access the repository ([how to get a token](https://linux.psi.ch/services/gitea/gitea-faq.html#i-need-a-service-user-token-for-automation)), you can
- include it into the URL (which makes to token visible inside the checkout as it is part of the `remote` configuration)
- rewrite the URL in `~/.gitconfig` of `user` (which then will cover all `git` operations with the respective URL prefix):
```
[url "https://a84t...4ksf@gitea.psi.ch/"]
insteadOf = https://gitea.psi.ch/
```
[]()
See the chapter "Encrypt Part of File Content/Download URL in Hiera" more below how to best deal with encrypting the token, or below full example:
```
gitea::token::lx-gitea: 'ENC[PKCS7,MIIBmQYJKoZI...dvkM=]'
@@ -150,7 +151,7 @@ files::download:
mode: '0444'
```
If a token is needed to access the webserver, you may provide it with the `token` parameter.
If a token is needed to access the webserver, you may provide it with the `token` parameter ([how to get a token](https://linux.psi.ch/services/gitea/gitea-faq.html#i-need-a-service-user-token-for-automation)).
### Download Lists