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

sc_serv

By: a guest on Jul 5th, 2011  |  syntax: None  |  size: 14.05 KB  |  views: 119  |  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. ; SHOUTcast Distributed Network Audio Server configuration file
  2. ; Copyright (C) 1998-2004 Nullsoft, Inc.
  3. ; All Rights Reserved.
  4. ; Last modified Mar 17 2004
  5.  
  6. ; If you want to manage multiple configurations, just copy
  7. ; this file to another name, and run sc_serv with that name
  8. ; such as:
  9. ; sc_serv.exe sc_leet.conf
  10.  
  11. ; ***************************
  12. ; Required stuff
  13. ; ***************************
  14.  
  15. ; MaxUser.  The maximum number of simultaneous listeners allowed.
  16. ; Compute a reasonable value for your available upstream bandwidth (i.e. if
  17. ; you have 256kbps upload DSL, and want to broadcast at 24kbps, you would
  18. ; choose 256kbps/24kbps=10 maximum listeners.)  Setting this value higher
  19. ; only wastes RAM and screws up your broadcast when more people connect
  20. ; than you can support.
  21. MaxUser=32
  22.  
  23. ; Password.  While SHOUTcast never asks a listener for a password, a
  24. ; password is required to broadcast through the server, and to perform
  25. ; administration via the web interface to this server.  This server should
  26. ; consist of only letters and numbers, and is the same server your broadcaster
  27. ; will need to enter in the SHOUTcast Source Plug-in for Winamp.  THIS VALUE
  28. ; CANNOT BE BLANK.
  29. Password=mdp
  30.  
  31. ; PortBase. This is the IP port number your server will run on.  The
  32. ; value, and the value + 1 must be available.  If you get a fatal error when
  33. ; the DNAS is setting up a socket on startup, make sure nothing else on the
  34. ; machine is running on the same port (telnet localhost portnumber -- if you
  35. ; get connection refused then you're clear to use that port).  Ports < 1024
  36. ; may require root privledges on *nix machines.  The default port is 8000.
  37. PortBase=8000
  38.  
  39. ; ***************************
  40. ; Optional Parameters
  41. ; ***************************
  42.  
  43. ; ***************************
  44. ; Logging configuration
  45. ; ***************************
  46.  
  47. ; LogFile: file to use for logging. Can be '/dev/null' or 'none'
  48. ; or empty to turn off logging. The default is ./sc_serv.log
  49. ; on *nix systems or sc_serv_dir\sc_serv.log on win32.
  50. ; Note: on win32 systems if no path is specified the location is
  51. ; in the same dir as the executable, on *nix systems it is in the
  52. ; current directory.
  53. LogFile=sc_serv.log
  54.  
  55. ; RealTime displays a status line that is updated every second
  56. ; with the latest information on the current stream (*nix and win32
  57. ; console systems only)
  58. RealTime=1
  59.  
  60. ; ScreenLog controls whether logging is printed to the screen or not
  61. ; on *nix and win32 console systems. It is useful to disable this when
  62. ; running servers in background without their own terminals. Default is 1
  63. ScreenLog=1
  64.  
  65. ; ShowLastSongs specifies how many songs to list in the /played.html
  66. ; page.  The default is 10.  Acceptable entries are 1 to 20.
  67. ShowLastSongs=10
  68.  
  69. ; TchLog decides whether or not the DNAS logfile should track yp
  70. ; directory touches.  Adds and removes still appear regardless of
  71. ; this setting.
  72. ; Default is yes
  73. ; TchLog=yes
  74.  
  75. ; WebLog decides whether or not hits to http:// on this DNAS will
  76. ; be logged.  Most people leave this off because the DSP plug-in
  77. ; uses http:// calls to update titles and get the listener count,
  78. ; which takes up a lot of log space eventually.  If you want to
  79. ; see people making hits on your admin.cgi or index pages, turn
  80. ; this back on.  Note that this setting does NOT affect XML stats
  81. ; counters for hits to http:// pages.
  82. ; Default is no.
  83. ; WebLog=no
  84.  
  85. ; W3CEnable turns on W3C Logging.  W3C logs contain httpd-like accounts
  86. ; of every track played for every listener, including byte counts those listeners
  87. ; took.  This data can be parsed with tools like Analog and WebTrends, or given
  88. ; to third parties like Arbitron and Measurecast for their reporting systems.
  89. ; Default is Yes (enabled).
  90. W3CEnable=Yes
  91.  
  92. ; W3CLog describes the name of the logfile for W3C logging.  Default logfile is
  93. ; sc_w3c.log, in the same directory wherever the DNAS gets started from.
  94. W3CLog=sc_w3c.log
  95.  
  96.  
  97. ; ***************************
  98. ; Network configuration
  99. ; ***************************
  100.  
  101. ; SrcIP, the interface to listen for source connections on (or to make relay
  102. ; connections on if relaying). Can and usually will be ANY or 127.0.0.1  
  103. ; (Making it 127.0.0.1 will keep other machines from being able to
  104. ; broadcast using your shoutcast server )
  105. SrcIP=ANY
  106.  
  107. ; DestIP, IP to listen for clients on (and to contact yp.shoutcast.com)
  108. ; can and usually will be be ANY. If your machine has multiple IP addresses,
  109. ; set this to the one you want it to be accessed by.
  110. DestIP=ANY
  111.  
  112. ; Yport, port to connect to yp.shoutcast.com on. For people behind caching
  113. ; webproxies, change this to the alternate port (666 is what it might be,
  114. ; check www.shoutcast.com if you have problems). Otherwise, leave this at 80.
  115. ; We're actively working on re-opening port 666, but as of release the only
  116. ; working port is port 80.
  117. Yport=80
  118.  
  119. ; NameLookups.  Specify 1 to perform reverse DNS on connections.
  120. ; This option may increase the time it takes to connect to your
  121. ; server if your DNS server is slow.  Default is 0 (off).
  122. NameLookups=0
  123.  
  124. ; RelayPort and RelayServer specify that you want to be a relay server.
  125. ; Relay servers act as clients to another server, and rebroadcast.
  126. ; Set RelayPort to 0, RelayServer to empty, or just leave these commented
  127. ; out to disable relay mode.
  128. ; RelayPort=8000
  129. ; RelayServer=192.168.1.58
  130.  
  131. ; ***************************
  132. ; Server configuration
  133. ; ***************************
  134.  
  135. ; AdminPassword.  This password (if specified) changes the
  136. ; behavior of Password to be a broadcast-only password, and
  137. ; limits HTTP administration tasks to the password specified
  138. ; here.  The broadcaster, with the password above, can still
  139. ; log in and view connected
  140. users, but only the AdminPassword
  141. ; will grant the right to kick, ban, and specify reserve hosts.
  142. ; The default is undefined (Password allows control for both
  143. ; source and admin)
  144. ; AdminPassword=adminpass
  145.  
  146. ; AutoDumpUsers controls whether listeners are disconnected if the source
  147. ; stream disconnects. The default is 0.
  148. AutoDumpUsers=0
  149.  
  150. ; AutoDumpSourceTime specifies how long, in seconds, the source stream is
  151. ; allowed to be idle before the server disconnects it. 0 will let the source
  152. ; stream idle indefinately before disconnecting. The default is 30.
  153. AutoDumpSourceTime=30
  154.  
  155. ; ContentDir specifies the directory location on disk of where to stream
  156. ; on-demand content from.  Subdirectories are supported as of DNAS 1.8.2.
  157. ; Default is ./content, meaning a directory named content in the same directory
  158. ; as where sc_serv was invoked from.
  159. ; ContentDir=./content
  160.  
  161. ; IntroFile can specify a mp3 file that will be streamed to listeners right
  162. ; when they connect before they hear the live stream.
  163. ; Note that the intro file MUST be the same samplerate/channels as the
  164. ; live stream in order for this to work properly. Although bitrate CAN
  165. ; vary, you can use '%d' to specify the bitrate in the filename
  166. ; (i.e. C:\intro%d.mp3 would be C:\intro64.mp3 if you are casting at 64kbps).
  167. ; The default is no IntroFile
  168. ; IntroFile=c:\intro%d.mp3
  169.  
  170. ; BackupFile can specify a mp3 file that will be streamed to listeners over
  171. ; and over again when the source stream disconnects. AutoDumpUsers must be
  172. ; 0 to use this feature. When the source stream reconnects, the listeners
  173. ; are rejoined into the live broadcast.
  174. ; Note that the backup file MUST be the same samplerate/channels as the
  175. ; live stream in order for this to work properly. Although bitrate CAN
  176. ; vary, you can use '%d' to specify the bitrate in the filename
  177. ; (i.e. C:\backup%d.mp3 would be C:\backup32.mp3 if you are casting at 32kbps).
  178. ; The default is no BackupFile
  179. ; BackupFile=C:\intro%d.mp3
  180.  
  181. ; TitleFormat specifies a format string for what title is sent to the listener.
  182. ; For example, a string of 'Justin Radio' forces the title 'Justin Radio' even
  183. ; when the source changes the title. You can use up to one '%s' in the string
  184. ; which lets you contain the title from the source. For example, if your
  185. ; TitleFormat is 'Justin Radio: %s', and the source plug-in's title is
  186. ; 'Billy plays the blues', then the net title is
  187. ; 'Justin Radio: Billy plays the blues'. Note: only works on non-relay servers.
  188. ; The default is no format string.
  189. ; TitleFormat=Justin Radio: %s
  190.  
  191. ; URLFormat specifies a format string for what url is sent to the listener.
  192. ; Behaves like TitleFormat (see above).
  193. ; The default is no format string.
  194. ; URLFormat=http://www.server.com/redirect.cgi?url=%s
  195.  
  196. ; PublicServer can be always, never, or default (the default, heh)
  197. ; Any setting other than default will override the public status
  198. ; of the source plug-in or of a SHOUTcast server that is being relayed.
  199. PublicServer=default
  200.  
  201. ; AllowRelay determines whether or not other SHOUTcast servers will be
  202. ; permitted to relay this server.  The default is Yes.
  203. AllowRelay=Yes
  204.  
  205. ; AllowPublicRelay, when set to No, will tell any relaying servers not
  206. ; to list the server in the SHOUTcast directory (non-public), provided
  207. ; the relaying server's Public flag is set to default.  The default is
  208. ; Yes.
  209. AllowPublicRelay=Yes
  210.  
  211. ; MetaInterval specifies how often, in bytes, metadata sent.
  212. ; You should really leave this at the default of 8192, but the option is
  213. ; provided anyway.
  214. MetaInterval=32768
  215.  
  216. ; *****************************
  217. ; Access Control
  218. ; *****************************
  219.  
  220. ; ListenerTimer is a value in minutes of maximum permitted time for
  221. ; a connected listener.  If someone is connected for longer than this
  222. ; amount of time, in minutes, they are disconnected.  When undefined,
  223. ; there is no limit defined.  Default is undefined.
  224. ; ListenerTimer=600
  225.  
  226. ; BanFile is the text file sc_serv reads and writes to/from
  227. ; for the list of clients prohibited to connect to this
  228. ; server.  It's automatically generated via the web
  229. ; interface.
  230. ; BanFile=sc_serv.ban
  231.  
  232. ; RipFile is the text file sc_serv reads and writes to/from
  233. ; for the list of client IPs which are *ALWAYS* permitted
  234. ; to connect to this server (useful for relay servers).
  235. ; This file is automatically generated via the web
  236. ; interface.  Note that if your server is FULL, and someone
  237. ; from a Reserved IP connects, the DNAS will force the person
  238. ; listening for the longest time off to make room for the new
  239. ; connection.
  240. ; RipFile=sc_serv.rip
  241.  
  242. ; RIPOnly, when set to Yes, will only allow IP addresses listed in the Reserved
  243. ; IP list to connect and relay.  All other connections for listening will be denied.
  244. ; This is really only useful for servers whose sole purpose is to provide the
  245. ; primary feed to all public relays.  Setting this value to Yes also forces the
  246. ; server into Private mode, since listing this server in the directory would
  247. ; be pointless.  Default is No.
  248. ; RIPOnly=No
  249.  
  250. ; *****************************
  251. ; Extended Logging
  252. ; *****************************
  253.  
  254. ; The old features previously at this location, HistoryLog and CurrentLog, are
  255. ; no longer used and succeded by W3C Logging and XML, respectively.
  256.  
  257. ; ***************************
  258. ; Mass Configuration
  259. ; ***************************
  260.  
  261. ; Unique: assigns a variable name for use in any config item which points to a
  262. ; file.  Useful for servers running lots of SHOUTcast servers that have similar
  263. ; configuration parameters, excepting logfile names, banfile names, etc.  Any
  264. ; parameter that takes a pathname can include the character $, which will
  265. ; substitute $ for the variable assigned here.  Keep in mind that the unique
  266. ; variable can only be used after it is defined, so don't try to use a unique
  267. ; variable substitution in a path before you define it.  For example, you
  268. ; could set:
  269. ; Unique=my_server
  270. ; and then define Log=/usr/local/shoutcast/$.log in an included configuration
  271. ; file.  Default is Unique=$, so that by default any file with $ in the name
  272. ; won't substitute anything at all.
  273.  
  274. ; Include: instructs the sc_serv to read from the named configuration file,
  275. ; *at the point of insertion of the Include statement*, and process as though
  276. ; the included file was part of itself.  Note that all configuration parameters
  277. ; in the DNAS config file are processed first to last, so if an item is defined
  278. ; twice in a configuration, the last item to process will be the one that takes
  279. ; effect.  For this reason, it's usually a good idea to use the Includes first
  280. ; in a config file.
  281. ; example:
  282. ; Include=/usr/local/shoutcast/common.conf
  283. ; Default is not applicable.
  284.  
  285. ; *****************************
  286. ; Tweaks
  287. ; *****************************
  288. ;
  289. ; DON'T MESS WITH THIS STUFF UNLESS YOU REALLY KNOW WHAT YOU'RE DOING.
  290. ; DON'T COMPLAIN TO US IF YOU MESS WITH IT AND THINGS BREAK.
  291. ; HAVE A NICE DAY.
  292.  
  293. ; CpuCount is used to explicitly limit the DNAS to dominating a finite
  294. ; amount of processors in multiprocessor systems.  By default,
  295. ; SHOUTcast creates one thread for every processor it detects in the
  296. ; host system, and assigns listeners equally across all the threads.
  297. ; In the event SHOUTcast doesn't correctly determine the number of
  298. ; CPUs in your host, or if you for whatever reason want to force
  299. ; the DNAS to not use other processors, you can say so here.
  300. ; Default behavior is to use as many processors as the DNAS detects on
  301. ; your system.
  302. ; CpuCount=1
  303.  
  304. ; Sleep defines the granularity of the client threads for sending data.
  305. ; DNAS 1.7.0, per client thread, will send up to 1,024 bytes of data
  306. ; per socket (or less depending on the window available), and then
  307. ; sleep for the provided duration before repeating the whole process.
  308. ; Note that making this value smaller will vastly increase CPU usage on
  309. ; your machine.  Increasing reduces CPU, but increasing this value too far
  310. ; will cause skips.  The value which seems most optimal for 128kbps
  311. ; streaming is 833 (833 microseconds per client poll) on our test labs.
  312. ; We wouldn't recommend setting it any lower than 100, or any higher than
  313. ; 1,024.  If you have a slower machine, set this number lower to fix
  314. ; skips.
  315. ; Default value is 833.
  316. ; Sleep=833
  317.  
  318. ; CleanXML strips some whitespace and linefeeds from XML output which
  319. ; confuses some (poorly written) XML parsers.  If you get XML rendering errors,
  320. ; try turning this on.  Default is No (off).
  321. ; CleanXML=No
  322. ;
  323. ; TAG RULES