JYPDWhite

Icecast drops authentification

Oct 28th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.28 KB | None | 0 0
  1. <icecast>
  2.     <!-- location and admin are two arbitrary strings that are e.g. visible
  3.         on the server info page of the icecast web interface
  4.         (server_version.xsl). -->
  5.     <location>Earth</location>
  6.     <admin>icemaster@localhost</admin>
  7.  
  8.     <!-- This is the hostname other people will use to connect to your server.
  9.         It affects mainly the urls generated by Icecast for playlists and yp
  10.         listings. You MUST configure it properly for YP listings to work!
  11.    -->
  12.     <hostname>localhost</hostname>
  13.  
  14.     <!-- IMPORTANT!
  15.         Especially for inexperienced users:
  16.         Start out by ONLY changing all passwords and restarting Icecast.
  17.         For detailed setup instructions please refer to the documentation.
  18.         It's also available here: http://icecast.org/docs/
  19.    -->
  20.  
  21.     <limits>
  22.         <clients>100</clients>
  23.         <sources>2</sources>
  24.         <queue-size>524288</queue-size>
  25.         <client-timeout>30</client-timeout>
  26.         <header-timeout>15</header-timeout>
  27.         <source-timeout>10</source-timeout>
  28.         <!-- If enabled, this will provide a burst of data when a client
  29.             first connects, thereby significantly reducing the startup
  30.             time for listeners that do substantial buffering. However,
  31.             it also significantly increases latency between the source
  32.             client and listening client.  For low-latency setups, you
  33.             might want to disable this. -->
  34.         <burst-on-connect>1</burst-on-connect>
  35.         <!-- same as burst-on-connect, but this allows for being more
  36.             specific on how much to burst. Most people won't need to
  37.             change from the default 64k. Applies to all mountpoints  -->
  38.         <burst-size>65535</burst-size>
  39.     </limits>
  40.  
  41.     <authentication>
  42.         <!-- Sources log in with username 'source' -->
  43.         <source-password>source</source-password>
  44.         <!-- Relays log in with username 'relay' -->
  45.         <relay-password>relay</relay-password>
  46.  
  47.         <!-- Admin logs in with the username given below -->
  48.         <admin-user>admin</admin-user>
  49.         <admin-password>admin</admin-password>
  50.     </authentication>
  51.  
  52.  
  53.     <!-- You may have multiple <listener> elements -->
  54.     <listen-socket>
  55.         <port>8000</port>
  56.         <!-- <bind-address>127.0.0.1</bind-address> -->
  57.         <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
  58.     </listen-socket>
  59.     <!--
  60.    <listen-socket>
  61.        <port>8080</port>
  62.    </listen-socket>
  63.    -->
  64.     <!--
  65.    <listen-socket>
  66.        <port>8443</port>
  67.        <ssl>1</ssl>
  68.    </listen-socket>
  69.    -->
  70.  
  71.  
  72.     <!-- Global header settings
  73.         Headers defined here will be returned for every HTTP request to Icecast.
  74.  
  75.         The ACAO header makes Icecast public content/API by default
  76.         This will make streams easier embeddable (some HTML5 functionality needs it).
  77.         Also it allows direct access to e.g. /status-json.xsl from other sites.
  78.         If you don't want this, comment out the following line or read up on CORS.
  79.    -->
  80.     <http-headers>
  81.         <header name="Access-Control-Allow-Origin" value="*" />
  82.     </http-headers>
  83.  
  84.    
  85.    
  86.     <mount>
  87.     <mount-name>/gemeinde.mp3</mount-name>
  88.     <authentication type="htpasswd">
  89.         <option name="filename" value="myauth"/>
  90.         <option name="allow_duplicate_users" value="1"/>
  91.     </authentication>
  92.     <fallback-mount>/fallback.mp3</fallback-mount>
  93.         <fallback-override>1</fallback-override>
  94. </mount>
  95.  
  96.  
  97. <mount>
  98.         <mount-name>/fallback.mp3</mount-name>
  99.         <authentication type="htpasswd">
  100.                 <option name="filename" value="myauth2"/>
  101.                 <option name="allow_duplicate_users" value="1"/>
  102.         </authentication>
  103. </mount>
  104.  
  105.     <fileserve>1</fileserve>
  106.  
  107.     <paths>
  108.         <logdir>./log</logdir>
  109.         <webroot>./web</webroot>
  110.         <adminroot>./admin</adminroot>
  111.  
  112.         <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  113.             May be made specific to a port or bound address using the "port"
  114.             and "bind-address" attributes.
  115.          -->
  116.         <!--
  117.        <alias source="/foo" destination="/bar"/>
  118.        -->
  119.         <!-- Aliases: can also be used for simple redirections as well,
  120.             this example will redirect all requests for http://server:port/ to
  121.             the status page
  122.        -->
  123.         <alias source="/" destination="/status.xsl"/>
  124.         <!-- The certificate file needs to contain both public and private part.
  125.             Both should be PEM encoded.
  126.        <ssl-certificate>./icecast.pem</ssl-certificate>
  127.        -->
  128.     </paths>
  129.  
  130.     <logging>
  131.         <accesslog>access.log</accesslog>
  132.         <errorlog>error.log</errorlog>
  133.         <!-- <playlistlog>playlist.log</playlistlog> -->
  134.         <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  135.         <logsize>10000</logsize> <!-- Max size of a logfile -->
  136.         <!-- If logarchive is enabled (1), then when logsize is reached
  137.             the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  138.             otherwise it will be moved to [error|access|playlist].log.old.
  139.             Default is non-archive mode (i.e. overwrite)
  140.        -->
  141.         <!-- <logarchive>1</logarchive> -->
  142.     </logging>
  143. </icecast>
Advertisement
Add Comment
Please, Sign In to add comment