From a78650ae3ee1ace8a41875a8fbd6718cee37e542 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Wed, 7 May 2025 08:32:36 +0200 Subject: [PATCH] link token FAQ entry --- admin-guide/configuration/files/distribute_files.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin-guide/configuration/files/distribute_files.md b/admin-guide/configuration/files/distribute_files.md index bbd14d75..b1f392fd 100644 --- a/admin-guide/configuration/files/distribute_files.md +++ b/admin-guide/configuration/files/distribute_files.md @@ -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