remirror-default-config.scm 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright (C) 2020 Maxime Devos
  2. # SPDX-License-Identifier: FSFAP
  3. # Copying and distribution of this file, with or without modification,
  4. # are permitted in any medium without royalty provided the copyright
  5. # notice and this notice are preserved. This file is offered as-is,
  6. # without any warranty.
  7. (rehash-remirror-configuration
  8. (endpoints
  9. (proxy (content-addressed narfile))
  10. (substitutes (content-addressed narfile))
  11. (web-endpoints (active-downloads statistics tuning)))
  12. (servers
  13. (ci.guix.gnu.org
  14. (url "https://ci.guix.gnu.org")
  15. (guix-content-addressed? #t)
  16. (narinfo? #t)
  17. (narfile? #t))
  18. (tarballs.nixos.org
  19. (url "https://tarballs.nixos.org")
  20. (nix-tarballs-content-addressed? #t))
  21. (archive.softwareheritage.org
  22. (url "https://archive.softwareheritage.org")
  23. (swh-archive? #t)))
  24. (parameters
  25. (http-proxy system-default)
  26. (https-proxy system-default))
  27. (tuning
  28. (use-http? #t)
  29. (use-https? #t)
  30. (use-ftp? #t)
  31. (use-gnunet? #t)
  32. (wait-for-hash (seconds 4))
  33. (minimal-gnunet-performance
  34. (kind minimal-information/time-unit)
  35. (bandwith (/ (kibibytes 500)
  36. (seconds 1)))
  37. (window (seconds 5))))
  38. (access-control
  39. (allow-tune?
  40. (wait-for-hash #t)
  41. (minimal-gnunet-performance #t))
  42. (change-parameter?
  43. (use-http? #t)
  44. (use-https? #t)
  45. (use-ftp? #t)
  46. (use-gnunet? #t))
  47. (access-endpoint? #t))
  48. (listen-at
  49. (loopback-v4
  50. (application-protocol http)
  51. (expect-hostname "localhost")
  52. (address-family ipv4)
  53. (address localhost)
  54. (port 8081))
  55. (loopback-v6
  56. (application-protocol http)
  57. (expect-hostname "localhost")
  58. (address-family ipv6)
  59. (address localhost)
  60. (port 8081))))