feat[config]: Use toml for configs

This commit is contained in:
2026-06-27 22:44:25 +03:00
parent fd88aabe46
commit 28f1fda048
5 changed files with 42 additions and 42 deletions
+3 -11
View File
@@ -31,15 +31,7 @@ It is slightly ancient solution for modern Docker/Kubernetes backends,
but provides configuration in one place and _secure enough_ place to save token.
Example config:
```ini
[main]
endpoint=https://example.com
token=XXXXX
format={owner}/{name}
out_dir=/home/user/repositories
ssh_key=/home/user/id_rsa
```
Example config is available in [config.example.toml](config.example.toml).
### Native
@@ -50,9 +42,9 @@ removing the ability to specify a user
2. Install dependencies (`pip3 install -r requirements.txt`).
Venv-level is recommended.
3. Install git (`sudo apt install git`)
4. And run it with path to ini config.
4. And run it with path to TOML config.
```bash
python gitea-mirror.py config.ini
python gitea-mirror.py config.toml
```