Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Andy Lai

By: a guest on Mar 27th, 2010  |  syntax: Python  |  size: 6.76 KB  |  views: 144  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [main]
  2. # file : /etc/videocache.conf
  3.  
  4. # This option controls the global behavior of videocache plugin.
  5. # If it is 0, videocache will stop caching or serving anything.
  6. # This option's value can be either 0 or 1.
  7. enable_video_cache = 1
  8.  
  9. # The hostname or IP address of the system on which caching is being done. This is
  10. # used for serving the videos from the cache. Please don't use http:// or slashes (/).
  11. # Just specify the domain name or IP address.
  12. # Example : localhost.localdomain
  13. # or proxy.example.com
  14. # or 192.168.36.204
  15. # or <Proxy_Server_IP_OR_Domain>
  16. cache_host = 192.168.1.1
  17.  
  18. # Proxy for http content.
  19. # Example : http_proxy = http://<Proxy_Server_IP_OR_Domain>:<Proxy_port>/
  20. # or http://proxy.example.com:3128/
  21. proxy = http://192.168.1.1:3128/
  22.  
  23. # If the above proxy requires authentication, please specify the username.
  24. proxy_username =
  25.  
  26. # If the above proxy requires authentication, please specify the password.
  27. proxy_password =
  28.  
  29. # No of times a video should be requested before we start caching it.
  30. hit_threshold = 1
  31.  
  32. # Base directories for caching the videos.
  33. # You can specify multiple caching directories here separated by '|' symbol along
  34. # with their sizes. Size of directories are in Mega Bytes. Don't append M or MB.
  35. #
  36. # EXAMPLE 1: To keep /videocache1 with size 700MB and /videocache2 with size 2GB as
  37. # your cache directories, set base_dir to
  38. # base_dir = /videocache/ : 700 | /videocache2:2048
  39. #
  40. # EXAMPLE 2: To keep /videocache1 with unlimited storage and /videocache2 with 2GB as
  41. # your cache directory, set base_dir to
  42. # base_dir = /videocache/ | /videocache2/:2048
  43. #                   OR
  44. # base_dir = /videocache/:0 | /videocache2/:2048
  45. # ZERO size specifies unlimited storage.
  46. # Please try to avoid special characters in directory names like spaces, $ etc.
  47. base_dir = /var/spool/videocache/
  48.  
  49. # This option sets the minimum available free space in Mega Bytes that is left in a
  50. # partition containing a cache directory before videocache treats that partition as FULL.
  51. #
  52. # EXAMPLE: If disk_avail_threshold = 200, videocache will stop caching videos in a cache
  53. # directory if the free space available in a partition containing that cache directory is
  54. # less than 200 Mega Bytes.
  55. disk_avail_threshold = 200
  56.  
  57. # Directory to store partially downloaded videos. Directory name is relative to base_dir.
  58. temp_dir = tmp
  59.  
  60. # The maximum number of parallel downloads allowed. If all connections are consumed,
  61. # videos will be queued for download.
  62. max_parallel_downloads = 3
  63.  
  64. # Enables the videocache cleaner script which will remove videos
  65. # from cache which have not been used since long.
  66. # The value of this option can be 0 or 1.
  67. enable_videocache_cleaner = 1
  68.  
  69. # The maximum life of a video in cache without being used. If the video was not accessed
  70. # for more than 'video_lifetime' days, it'll be removed from the cache. The unit of
  71. # video_lifetime is days.
  72. # For Example : video_lifetime = 3 will remove videos which were not used since last 3 or more days.
  73. video_lifetime = 365
  74.  
  75. # Directory where videocache logs will be stored.
  76. logdir = /var/log/videocache/
  77.  
  78. # Maximum size of logfile specified above. The size is in mega bytes.
  79. # Note : Please don't use max_logfile_size = 10MB. Don't append MB.
  80. max_logfile_size = 10
  81.  
  82. # The logfiles are automatically rotated once they have exceeded the max_logfile_size.
  83. # max_logfile_backups is the number of backup files you want to keep.
  84. # e.g. max_logfile_backups = 2 will keep videocache.log and videocache.log.1 and
  85. # videocache.log.2 as logfiles.
  86. max_logfile_backups = 10
  87.  
  88. # XMLRPCServer is used for memory sharing across different instances of
  89. # videocache. Leave these settings as it is if you don't have a fair
  90. # idea of XMLRPCServer. This will be same as cache_host in almost all the cases.
  91. rpc_host = 192.168.1.1
  92.  
  93. # Please make sure this port is not currently in use. If it is in use by some
  94. # other program, change this to some port above 1024 which is not in use by
  95. # any other program.
  96. rpc_port = 9100
  97.  
  98. # This option enables the caching of youtube videos.
  99. # This option's value can be either 0 or 1.
  100. enable_youtube_cache = 1
  101.  
  102. # Directory to cache youtube videos. Directory name is relative to base_dir.
  103. # e.g. if you specify youtube_cache_dir = youtube, actual path for caching
  104. # youtube videos would be /var/spool/videocache/youtube/ .
  105. youtube_cache_dir = youtube
  106.  
  107. # Youtube videos with size more than max_youtube_video_size will not be cached. This
  108. # size is in kilo bytes. Use 0 for unlimited caching.
  109. # e.g. max_youtube_video_size = 10000. Only videos with size less than 10MB (10000KB)
  110. # will be cached.
  111. # NOTE : Don't use max_youtube_video_size = 10000KB. Don't append KB.
  112. max_youtube_video_size = 80000
  113.  
  114. # Youtube videos with size less than min_youtube_video_size will not be cached. This
  115. # size is in kilo bytes. Use 0 for no lower limit.
  116. # e.g. min_youtube_video_size = 10. Only videos with size more than 10KB will be cached.
  117. # NOTE : Don't use min_youtube_video_size = 10KB. Don't append KB.
  118. min_youtube_video_size = 500
  119.  
  120. # Metacafe.com Options
  121. enable_metacafe_cache = 1
  122. metacafe_cache_dir = metacafe
  123. max_metacafe_video_size = 80000
  124. min_metacafe_video_size = 500
  125.  
  126. # Dailymotion.com Options
  127. enable_dailymotion_cache = 1
  128. dailymotion_cache_dir = dailymotion
  129. max_dailymotion_video_size = 80000
  130. min_dailymotion_video_size = 500
  131.  
  132. # Google.com Options
  133. enable_google_cache = 1
  134. google_cache_dir = google
  135. max_google_video_size = 80000
  136. min_google_video_size = 500
  137.  
  138. # Redute.com Options
  139. enable_redtube_cache = 1
  140. redtube_cache_dir = redtube
  141. max_redtube_video_size = 80000
  142. min_redtube_video_size = 500
  143.  
  144. # Xtube.com Options
  145. enable_xtube_cache = 1
  146. xtube_cache_dir = xtube
  147. max_xtube_video_size = 80000
  148. min_xtube_video_size = 500
  149.  
  150. # Vimeo.com Options
  151. enable_vimeo_cache = 1
  152. vimeo_cache_dir = vimeo
  153. max_vimeo_video_size = 80000
  154. min_vimeo_video_size = 500
  155.  
  156. # Wrzuta.pl Options
  157. enable_wrzuta_cache = 1
  158. wrzuta_cache_dir = wrzuta
  159. max_wrzuta_video_size = 80000
  160. min_wrzuta_video_size = 500
  161.  
  162. # Youporn.com Options
  163. enable_youporn_cache = 1
  164. youporn_cache_dir = youporn
  165. max_youporn_video_size = 80000
  166. min_youporn_video_size = 500
  167.  
  168. # Soapbox.msn.com Options
  169. enable_soapbox_cache = 1
  170. soapbox_cache_dir = soapbox
  171. max_soapbox_video_size = 80000
  172. min_soapbox_video_size = 500
  173.  
  174. # Tube8.com Options
  175. enable_tube8_cache = 1
  176. tube8_cache_dir = tube8
  177. max_tube8_video_size = 80000
  178. min_tube8_video_size = 500
  179.  
  180. # Tvuol.uol.com.br Options
  181. enable_tvuol_cache = 1
  182. tvuol_cache_dir = tvuol
  183. max_tvuol_video_size = 80000
  184. min_tvuol_video_size = 500
  185.  
  186. # Blip.tv Options
  187. enable_bliptv_cache = 1
  188. bliptv_cache_dir = bliptv
  189. max_bliptv_video_size = 80000
  190. min_bliptv_video_size = 500
  191.  
  192. # Break.com Options
  193. enable_break_cache = 1
  194. break_cache_dir = break
  195. max_break_video_size = 80000
  196. min_break_video_size = 500