From 955020d9f41f24c585d459dd87a527b867373fac Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Mon, 8 May 2023 18:06:57 +0300 Subject: [PATCH] Add flexo configuration --- config-root.toml | 6 ++++++ root/etc/flexo/flexo.toml | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 root/etc/flexo/flexo.toml diff --git a/config-root.toml b/config-root.toml index 7020392f..defe48b9 100644 --- a/config-root.toml +++ b/config-root.toml @@ -159,6 +159,10 @@ dst = "/etc/sudoers.d/pacman" src = "etc/doas.conf" dst = "/etc/doas.conf" +[dotfiles."f_flexo.toml"] +src = "etc/flexo/flexo.toml" +dst = "/etc/flexo/flexo.toml" + [profiles.Network] dotfiles = ["d_network", "f_networkd.conf"] @@ -192,6 +196,7 @@ dotfiles = [ "f_system.conf", "f_timesyncd.conf", "f_welcomemessage.conf", + "f_flexo.toml", ] include = ["Locale", "Pacman", "Network"] @@ -207,6 +212,7 @@ dotfiles = [ "f_mkinitcpio_linux-lts.preset", "f_plymouthd.conf", "f_sshd_config", + "f_flexo.toml", ] [profiles.Gondor] diff --git a/root/etc/flexo/flexo.toml b/root/etc/flexo/flexo.toml new file mode 100644 index 00000000..07ec1138 --- /dev/null +++ b/root/etc/flexo/flexo.toml @@ -0,0 +1,26 @@ +cache_directory = "/var/cache/flexo/pkg" +connect_timeout = 3000 +mirrorlist_fallback_file = "/var/cache/flexo/state/mirrorlist" +mirrorlist_latency_test_results_file = "/var/cache/flexo/state/latency_test_results.json" +listen_ip_address = "0.0.0.0" +port = 7878 +mirror_selection_method = "auto" +mirrors_predefined = [] +num_versions_retain = 3 + +[mirrors_auto] + +mirrors_status_json_endpoint = "https://archlinux.org/mirrors/status/json/" +mirrors_status_json_endpoint_fallbacks = [ + "https://raw.githubusercontent.com/nroi/archlinux-mirrors-status-fallback/main/mirrorlist.json", +] +mirrors_blacklist = [] +https_required = true +ipv4 = true +ipv6 = false +max_score = 2.5 +num_mirrors = 8 +mirrors_random_or_sort = "sort" +timeout = 350 +refresh_latency_tests_after = "8 days" +allowed_countries = []