.wgetrc 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. ###
  2. ### Sample Wget initialization file .wgetrc
  3. ###
  4. ## You can use this file to change the default behaviour of wget or to
  5. ## avoid having to type many many command-line options. This file does
  6. ## not contain a comprehensive list of commands -- look at the manual
  7. ## to find out what you can put into this file. You can find this here:
  8. ## $ info wget.info 'Startup File'
  9. ## Or online here:
  10. ## https://www.gnu.org/software/wget/manual/wget.html#Startup-File
  11. ##
  12. ## Wget initialization file can reside in /usr/local/etc/wgetrc
  13. ## (global, for all users) or $HOME/.wgetrc (for a single user).
  14. ##
  15. ## To use the settings in this file, you will have to uncomment them,
  16. ## as well as change them, in most cases, as the values on the
  17. ## commented-out lines are the default values (e.g. "off").
  18. ##
  19. ## Command are case-, underscore- and minus-insensitive.
  20. ## For example ftp_proxy, ftp-proxy and ftpproxy are the same.
  21. ##
  22. ## Global settings (useful for setting up in /usr/local/etc/wgetrc).
  23. ## Think well before you change them, since they may reduce wget's
  24. ## functionality, and make it behave contrary to the documentation:
  25. ##
  26. # You can set retrieve quota for beginners by specifying a value
  27. # optionally followed by 'K' (kilobytes) or 'M' (megabytes). The
  28. # default quota is unlimited.
  29. #quota = inf
  30. # You can lower (or raise) the default number of retries when
  31. # downloading a file (default is 20).
  32. tries = 20
  33. # Lowering the maximum depth of the recursive retrieval is handy to
  34. # prevent newbies from going too "deep" when they unwittingly start
  35. # the recursive retrieval. The default is 5.
  36. #reclevel = 5
  37. # By default Wget uses "passive FTP" transfer where the client
  38. # initiates the data connection to the server rather than the other
  39. # way around. That is required on systems behind NAT where the client
  40. # computer cannot be easily reached from the Internet. However, some
  41. # firewalls software explicitly supports active FTP and in fact has
  42. # problems supporting passive transfer. If you are in such
  43. # environment, use "passive_ftp = off" to revert to active FTP.
  44. #passive_ftp = off
  45. # The "wait" command below makes Wget wait between every connection.
  46. # If, instead, you want Wget to wait only between retries of failed
  47. # downloads, set waitretry to maximum number of seconds to wait (Wget
  48. # will use "linear backoff", waiting 1 second after the first failure
  49. # on a file, 2 seconds after the second failure, etc. up to this max).
  50. #waitretry = 10
  51. ##
  52. ## Local settings (for a user to set in his $HOME/.wgetrc). It is
  53. ## *highly* undesirable to put these settings in the global file, since
  54. ## they are potentially dangerous to "normal" users.
  55. ##
  56. ## Even when setting up your own ~/.wgetrc, you should know what you
  57. ## are doing before doing so.
  58. ##
  59. # Set this to on to use timestamping by default:
  60. #timestamping = off
  61. # It is a good idea to make Wget send your email address in a `From:'
  62. # header with your request (so that server administrators can contact
  63. # you in case of errors). Wget does *not* send `From:' by default.
  64. #header = From: Your Name <username@site.domain>
  65. # You can set up other headers, like Accept-Language. Accept-Language
  66. # is *not* sent by default.
  67. header = Accept-Language: en
  68. # You can set the default proxies for Wget to use for http, https, and ftp.
  69. # They will override the value in the environment.
  70. #https_proxy = http://proxy.yoyodyne.com:18023/
  71. #http_proxy = http://proxy.yoyodyne.com:18023/
  72. #ftp_proxy = http://proxy.yoyodyne.com:18023/
  73. # If you do not want to use proxy at all, set this to off.
  74. #use_proxy = on
  75. # You can customize the retrieval outlook. Valid options are default,
  76. # binary, mega and micro.
  77. #dot_style = default
  78. # Setting this to off makes Wget not download /robots.txt. Be sure to
  79. # know *exactly* what /robots.txt is and how it is used before changing
  80. # the default!
  81. robots = off
  82. # It can be useful to make Wget wait between connections. Set this to
  83. # the number of seconds you want Wget to wait.
  84. wait = 8
  85. # You can force creating directory structure, even if a single is being
  86. # retrieved, by setting this to on.
  87. dirstruct = off
  88. # You can turn on recursive retrieving by default (don't do this if
  89. # you are not sure you know what it means) by setting this to on.
  90. #recursive = off
  91. # To always back up file X as X.orig before converting its links (due
  92. # to -k / --convert-links / convert_links = on having been specified),
  93. # set this variable to on:
  94. #backup_converted = off
  95. # To have Wget follow FTP links from HTML files by default, set this
  96. # to on:
  97. #follow_ftp = off
  98. # To try ipv6 addresses first:
  99. prefer-family = IPv6
  100. # Set default IRI support state
  101. #iri = off
  102. # Force the default system encoding
  103. #localencoding = UTF-8
  104. # Force the default remote server encoding
  105. #remoteencoding = UTF-8
  106. # Turn on to prevent following non-HTTPS links when in recursive mode
  107. #httpsonly = off
  108. # Tune HTTPS security (auto, SSLv2, SSLv3, TLSv1, PFS)
  109. secureprotocol = auto
  110. # default root certs location
  111. ca_certificate=/etc/ssl/certs/ca-certificates.crt