Advertisement
Guest User

Untitled

a guest
Jun 19th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.06 KB | None | 0 0
  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=300
  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=usina123br
  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=8010
  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 users, but only the AdminPassword
  140. ; will grant the right to kick, ban, and specify reserve hosts.
  141. ; The default is undefined (Password allows control for both
  142. ; source and admin)
  143. AdminPassword=usina123br
  144.  
  145. ; AutoDumpUsers controls whether listeners are disconnected if the source
  146. ; stream disconnects. The default is 0.
  147. AutoDumpUsers=0
  148.  
  149. ; AutoDumpSourceTime specifies how long, in seconds, the source stream is
  150. ; allowed to be idle before the server disconnects it. 0 will let the source
  151. ; stream idle indefinately before disconnecting. The default is 30.
  152. AutoDumpSourceTime=30
  153.  
  154. ; ContentDir specifies the directory location on disk of where to stream
  155. ; on-demand content from. Subdirectories are supported as of DNAS 1.8.2.
  156. ; Default is ./content, meaning a directory named content in the same directory
  157. ; as where sc_serv was invoked from.
  158. ; ContentDir=./content
  159.  
  160. ; IntroFile can specify a mp3 file that will be streamed to listeners right
  161. ; when they connect before they hear the live stream.
  162. ; Note that the intro file MUST be the same samplerate/channels as the
  163. ; live stream in order for this to work properly. Although bitrate CAN
  164. ; vary, you can use '%d' to specify the bitrate in the filename
  165. ; (i.e. C:\intro%d.mp3 would be C:\intro64.mp3 if you are casting at 64kbps).
  166. ; The default is no IntroFile
  167. ; IntroFile=c:\intro%d.mp3
  168.  
  169. ; BackupFile can specify a mp3 file that will be streamed to listeners over
  170. ; and over again when the source stream disconnects. AutoDumpUsers must be
  171. ; 0 to use this feature. When the source stream reconnects, the listeners
  172. ; are rejoined into the live broadcast.
  173. ; Note that the backup file MUST be the same samplerate/channels as the
  174. ; live stream in order for this to work properly. Although bitrate CAN
  175. ; vary, you can use '%d' to specify the bitrate in the filename
  176. ; (i.e. C:\backup%d.mp3 would be C:\backup32.mp3 if you are casting at 32kbps).
  177. ; The default is no BackupFile
  178. ; BackupFile=C:\intro%d.mp3
  179.  
  180. ; TitleFormat specifies a format string for what title is sent to the listener.
  181. ; For example, a string of 'Justin Radio' forces the title 'Justin Radio' even
  182. ; when the source changes the title. You can use up to one '%s' in the string
  183. ; which lets you contain the title from the source. For example, if your
  184. ; TitleFormat is 'Justin Radio: %s', and the source plug-in's title is
  185. ; 'Billy plays the blues', then the net title is
  186. ; 'Justin Radio: Billy plays the blues'. Note: only works on non-relay servers.
  187. ; The default is no format string.
  188. ; TitleFormat=Justin Radio: %s
  189.  
  190. ; URLFormat specifies a format string for what url is sent to the listener.
  191. ; Behaves like TitleFormat (see above).
  192. ; The default is no format string.
  193. ; URLFormat=http://www.server.com/redirect.cgi?url=%s
  194.  
  195. ; PublicServer can be always, never, or default (the default, heh)
  196. ; Any setting other than default will override the public status
  197. ; of the source plug-in or of a SHOUTcast server that is being relayed.
  198. PublicServer=default
  199.  
  200. ; AllowRelay determines whether or not other SHOUTcast servers will be
  201. ; permitted to relay this server. The default is Yes.
  202. AllowRelay=Yes
  203.  
  204. ; AllowPublicRelay, when set to No, will tell any relaying servers not
  205. ; to list the server in the SHOUTcast directory (non-public), provided
  206. ; the relaying server's Public flag is set to default. The default is
  207. ; Yes.
  208. AllowPublicRelay=Yes
  209.  
  210. ; MetaInterval specifies how often, in bytes, metadata sent.
  211. ; You should really leave this at the default of 8192, but the option is
  212. ; provided anyway.
  213. MetaInterval=8192
  214.  
  215. ; *****************************
  216. ; Access Control
  217. ; *****************************
  218.  
  219. ; ListenerTimer is a value in minutes of maximum permitted time for
  220. ; a connected listener. If someone is connected for longer than this
  221. ; amount of time, in minutes, they are disconnected. When undefined,
  222. ; there is no limit defined. Default is undefined.
  223. ; ListenerTimer=600
  224.  
  225. ; BanFile is the text file sc_serv reads and writes to/from
  226. ; for the list of clients prohibited to connect to this
  227. ; server. It's automatically generated via the web
  228. ; interface.
  229. ; BanFile=sc_serv.ban
  230.  
  231. ; RipFile is the text file sc_serv reads and writes to/from
  232. ; for the list of client IPs which are *ALWAYS* permitted
  233. ; to connect to this server (useful for relay servers).
  234. ; This file is automatically generated via the web
  235. ; interface. Note that if your server is FULL, and someone
  236. ; from a Reserved IP connects, the DNAS will force the person
  237. ; listening for the longest time off to make room for the new
  238. ; connection.
  239. ; RipFile=sc_serv.rip
  240.  
  241. ; RIPOnly, when set to Yes, will only allow IP addresses listed in the Reserved
  242. ; IP list to connect and relay. All other connections for listening will be denied.
  243. ; This is really only useful for servers whose sole purpose is to provide the
  244. ; primary feed to all public relays. Setting this value to Yes also forces the
  245. ; server into Private mode, since listing this server in the directory would
  246. ; be pointless. Default is No.
  247. ; RIPOnly=No
  248.  
  249. ; *****************************
  250. ; Extended Logging
  251. ; *****************************
  252.  
  253. ; The old features previously at this location, HistoryLog and CurrentLog, are
  254. ; no longer used and succeded by W3C Logging and XML, respectively.
  255.  
  256. ; ***************************
  257. ; Mass Configuration
  258. ; ***************************
  259.  
  260. ; Unique: assigns a variable name for use in any config item which points to a
  261. ; file. Useful for servers running lots of SHOUTcast servers that have similar
  262. ; configuration parameters, excepting logfile names, banfile names, etc. Any
  263. ; parameter that takes a pathname can include the character $, which will
  264. ; substitute $ for the variable assigned here. Keep in mind that the unique
  265. ; variable can only be used after it is defined, so don't try to use a unique
  266. ; variable substitution in a path before you define it. For example, you
  267. ; could set:
  268. ; Unique=my_server
  269. ; and then define Log=/usr/local/shoutcast/$.log in an included configuration
  270. ; file. Default is Unique=$, so that by default any file with $ in the name
  271. ; won't substitute anything at all.
  272.  
  273. ; Include: instructs the sc_serv to read from the named configuration file,
  274. ; *at the point of insertion of the Include statement*, and process as though
  275. ; the included file was part of itself. Note that all configuration parameters
  276. ; in the DNAS config file are processed first to last, so if an item is defined
  277. ; twice in a configuration, the last item to process will be the one that takes
  278. ; effect. For this reason, it's usually a good idea to use the Includes first
  279. ; in a config file.
  280. ; example:
  281. ; Include=/usr/local/shoutcast/common.conf
  282. ; Default is not applicable.
  283.  
  284. ; *****************************
  285. ; Tweaks
  286. ; *****************************
  287. ;
  288. ; DON'T MESS WITH THIS STUFF UNLESS YOU REALLY KNOW WHAT YOU'RE DOING.
  289. ; DON'T COMPLAIN TO US IF YOU MESS WITH IT AND THINGS BREAK.
  290. ; HAVE A NICE DAY.
  291.  
  292. ; CpuCount is used to explicitly limit the DNAS to dominating a finite
  293. ; amount of processors in multiprocessor systems. By default,
  294. ; SHOUTcast creates one thread for every processor it detects in the
  295. ; host system, and assigns listeners equally across all the threads.
  296. ; In the event SHOUTcast doesn't correctly determine the number of
  297. ; CPUs in your host, or if you for whatever reason want to force
  298. ; the DNAS to not use other processors, you can say so here.
  299. ; Default behavior is to use as many processors as the DNAS detects on
  300. ; your system.
  301. ; CpuCount=1
  302.  
  303. ; Sleep defines the granularity of the client threads for sending data.
  304. ; DNAS 1.7.0, per client thread, will send up to 1,024 bytes of data
  305. ; per socket (or less depending on the window available), and then
  306. ; sleep for the provided duration before repeating the whole process.
  307. ; Note that making this value smaller will vastly increase CPU usage on
  308. ; your machine. Increasing reduces CPU, but increasing this value too far
  309. ; will cause skips. The value which seems most optimal for 128kbps
  310. ; streaming is 833 (833 microseconds per client poll) on our test labs.
  311. ; We wouldn't recommend setting it any lower than 100, or any higher than
  312. ; 1,024. If you have a slower machine, set this number lower to fix
  313. ; skips.
  314. ; Default value is 833.
  315. ; Sleep=833
  316.  
  317. ; CleanXML strips some whitespace and linefeeds from XML output which
  318. ; confuses some (poorly written) XML parsers. If you get XML rendering errors,
  319. ; try turning this on. Default is No (off).
  320. ; CleanXML=No
  321. ;
  322. ; TAG RULES
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement