Files
ALR-updater/alr-updater.example.toml
Евгений Храмов 72131fc7ac Добавление логирования
Добавления возможности использования github токена
2025-10-04 00:36:48 +03:00

54 lines
2.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Базовый каталог для хранения всех репозиториев
reposBaseDir = "/var/cache/alr-updater"
# Конфигурация репозиториев (можно настроить несколько)
[repositories.alr-repo]
repoURL = "https://gitea.plemya-x.ru/Plemya-x/alr-repo.git"
[repositories.alr-repo.commit]
# Имя и адрес электронной почты, которые будут использоваться при фиксации git
name = "CHANGE ME"
email = "CHANGE ME"
[repositories.alr-repo.credentials]
# Имя пользователя и пароль для git push. Используйте личный токен доступа в качестве пароля для Gitea.
username = "CHANGE ME"
password = "CHANGE ME"
# Дополнительные репозитории для мониторинга
[repositories.alr-LG]
repoURL = "https://git.linux-gaming.ru/Linux-Gaming/alr-LG.git"
[repositories.alr-LG.commit]
name = "CHANGE ME"
email = "CHANGE ME"
[repositories.alr-LG.credentials]
username = "CHANGE ME"
password = "CHANGE ME"
[repositories.alr-default]
repoURL = "https://gitea.plemya-x.ru/Plemya-x/alr-default.git"
[repositories.alr-default.commit]
name = "CHANGE ME"
email = "CHANGE ME"
[repositories.alr-default.credentials]
username = "CHANGE ME"
password = "CHANGE ME"
[webhook]
# Хэш пароля для webhook. Сгенерируйте его, используя `alr-updater -g`.
pwd_hash = "CHANGE ME"
[logging]
# Включить логирование в файл
enable_file = false
# Путь к файлу логов (по умолчанию /var/log/alr-updater.log)
log_file = "/var/log/alr-updater.log"
# Максимальный размер файла логов в байтах (по умолчанию 100MB)
# При достижении этого размера файл будет ротирован
max_size = 104857600
[github]
# GitHub Personal Access Token для увеличения лимита API запросов
# Без токена: 60 запросов/час
# С токеном: 5000 запросов/час
# Создать токен: https://github.com/settings/tokens
# Требуемые права: public_repo (или repo для приватных репозиториев)
token = "CHANGE ME"