Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.60 KB | None | 0 0
  1. #--------------------------------------------------------------------------
  2. # Audio Ratelimit (Advanced Music Settings)
  3. #--------------------------------------------------------------------------
  4. #
  5. # The audio ratelimiting feature can be used to help circumvent YouTubes
  6. # request restrictions on larger bots which might send a lot of
  7. # requests to YouTube for music every second/minute.
  8. #
  9. # The system uses a list of IP blocks to generate IPs that should be used for
  10. # outgoing requests, this means each request can have an unique IP attached
  11. # to it, or IPs being rotated when it gets banned, the selected strategy
  12. # will determine what IP is chosen, and whether IPs are re-used or not.
  13. #
  14. # This feature requires the server administrator to setup a link to the different
  15. # subnets they wish the bot to be able to bind with for requests, if the subnets
  16. # are not configured correctly with the machine, the bot won't be able to bind
  17. # correctly with the subnet. Thus, this feature should only be enabled if you
  18. # know what you're doing, music from YouTube will still work with this
  19. # feature disabled for smaller bots.
  20. #
  21. audio-ratelimit:
  22.     # Determines if the audio ratelimiting IP blocks should be used
  23.     # for outgoing audio requests.
  24.     #
  25.     enabled: false
  26.  
  27.     # A list of IPs or subnets that should be used for audio related requests,
  28.     # the system will only support one type of IP at a time, so all the IPs
  29.     # in the block must be either IPv4 or IPv6 addresses, and not both
  30.     # in the same list.
  31.     #
  32.     ip-blocks:
  33.        - '127.0.0.1/31'
  34.         - '127.0.0.3/32'
  35.  
  36.     # A list of IP addresses that should be excluded from being used to make
  37.     # audio requests, any IP will be ignored for requests and should
  38.     # never be ratelimited.
  39.     #
  40.     exclude-ips:
  41.        - '127.0.0.2'
  42.  
  43.     # The ratelimit strategy determines how the bot should send requests to YouTube
  44.     # to prevent being ratelimited. Different strategies will use up the available
  45.     # IPs in various of different ways, the following strategies is available.
  46.     #
  47.     # LoadBalance
  48.     #     - Uses a random IP address for each outgoing request.
  49.     # NanoSwitch
  50.     #     - Requires a /64 IPv6 subnet, picks an address using a nano offset.
  51.     # RotateOnBan
  52.     #     - Rotates to a new IP each time the current address gets ratelimited.
  53.     # RotatingNanoSwitch
  54.     #     - Uses a combination of NanoSwitch and RotateOnBan.
  55.     #
  56.     strategy: 'NanoSwitch'
  57.  
  58.     # Determines if a 429 error response code for search requests
  59.     # should mark an IP address as failing.
  60.     #
  61.     search-triggers-fail: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement