summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'segget/network2.conf')
-rw-r--r--segget/network2.conf29
1 files changed, 26 insertions, 3 deletions
diff --git a/segget/network2.conf b/segget/network2.conf
index e163e1b..ae243ef 100644
--- a/segget/network2.conf
+++ b/segget/network2.conf
@@ -1,13 +1,15 @@
[mode]
-# SYNOPSIS: NETWORK_MODE= 0 | 1 | 2
+# SYNOPSIS: NETWORK_MODE= 0 | 1 | 2 | 3
# 0 - remote mirrors (default)
# 1 - proxy fetcher
# 2 - local mirrors
# 3 - CoralCDN
+# - If set to 0, segget will use ONLY mirror list provided by portage
+# system, and will NOT use the list from network0_mirrors.conf file.
# - If set to 1 or 2, segget will replace mirror list provided by portage
# system with the list from network#_mirrors.conf file
-# - If set to 0, segget will use ONLY mirror list provided by portage
-# system, and will NOT use the list from network0_mirrors.conf file
+# - If set to 3, segget will convert mirrors provided by portage system
+# to use CoralCDN caches.
# In some cases it's necessary to make segget prefer local mirrors over
# the remote ones. For this purpose define settings for 2 networks:
# settings for network0 (to provide access to local mirrors),
@@ -133,6 +135,27 @@ low_connection_speed_time=10
# max_connection_speed=0
max_connection_speed=3000
+# SYNOPSIS: FOLLOW_LOCATION= 0 | 1
+# A parameter set to 1 tells segget to follow any Location: header that the server
+# sends as part of an HTTP header. This means that the segget will re-send the
+# same request on the new location and follow new Location: headers all the way
+# until no more such headers are returned. MAX_REDIRS can be used to limit the
+# number of redirects segget will follow.
+# Default:
+# follow_location=1
+follow_location=1
+
+# MAX_REDIRS
+# The set number will be the redirection limit. If that many redirections have
+# been followed, the next redirect will cause an error. This option only makes
+# sense if the FOLLOW_LOCATION is used at the same time.
+# Setting the limit to 0 will make segget refuse any redirect.
+# Minimum value: 0
+# Maximum value: 100
+# Default:
+# max_redirs=5
+max_redirs=5
+
[network_protocols]
# SYNOPSIS: http_on=0 | 1
# Default: