index-v2 'mirrors' fully settable from config

This lets mirrors: in config.yml be the same list-of-dicts format as it is
in index-v2.  This also includes a data format conversion to maintain the
right format for the old, unchanging index v0 and v1 formats.

#928
#1107
This commit is contained in:
Hans-Christoph Steiner 2023-04-19 16:27:02 +02:00 committed by Michael Pöhn
parent ceef07d2f2
commit 7c692a4532
5 changed files with 204 additions and 36 deletions

View file

@ -220,6 +220,15 @@
# mirrors:
# - https://foo.bar/fdroid
# - http://foobarfoobarfoobar.onion/fdroid
#
# Or additional metadata can also be included by adding key/value pairs:
#
# mirrors:
# - url: https://foo.bar/fdroid
# countryCode: BA
# - url: http://foobarfoobarfoobar.onion/fdroid
#
# optionally specify which identity file to use when using rsync or git over SSH
#