feat[config]: Use toml for configs
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user