This commit is contained in:
Antoine Bartuccio 2021-06-11 17:33:42 +02:00
parent 2d7d2e9915
commit a9b4198f93
2 changed files with 10 additions and 17 deletions

View File

@ -14,22 +14,15 @@
</limits> </limits>
<authentication> <authentication>
<!-- Sources log in with username 'source' -->
<source-password>hackme</source-password>
<!-- Relays log in with username 'relay' -->
<relay-password>hackme</relay-password>
<relay-user>bro</relay-user>
<!-- Admin logs in with the username given below --> <!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user> <admin-user>{{ admin_user }}</admin-user>
<admin-password>hackme</admin-password> <admin-password>{{ admin_password }}</admin-password>
</authentication> </authentication>
<hostname>localhost</hostname> <hostname>{{ hostname }}</hostname>
<listen-socket> <listen-socket>
<port>8000</port> <port>{{ port }}</port>
</listen-socket> </listen-socket>
<http-headers> <http-headers>
<header name="Access-Control-Allow-Origin" value="*" /> <header name="Access-Control-Allow-Origin" value="*" />
@ -39,10 +32,10 @@
<mount type="normal"> <mount type="normal">
<mount-name>/radio-bullshit.ogg</mount-name> <mount-name>/radio-bullshit.ogg</mount-name>
<username>othersource</username> <username>{{ source_username }}</username>
<password>hackmemore</password> <password>{{ source_password }}</password>
<max-listeners>1</max-listeners> <max-listeners>{{ max_listeners }}</max-listeners>
<dump-file>/tmp/dump-example1.ogg</dump-file> <dump-file>/tmp/dump-example1.ogg</dump-file>
<burst-size>65536</burst-size> <burst-size>65536</burst-size>
<fallback-mount>/example2.ogg</fallback-mount> <fallback-mount>/example2.ogg</fallback-mount>

View File

@ -5,15 +5,15 @@
<name>Radio Bullshit</name> <name>Radio Bullshit</name>
<genre>Bullshit</genre> <genre>Bullshit</genre>
<description>J'ai une superbe opportunité de travail</description> <description>J'ai une superbe opportunité de travail</description>
<url>localhost</url> <url>{{ hostname }}</url>
</metadata> </metadata>
<input> <input>
<param name="type">script</param> <param name="type">script</param>
<param name="program">next_song.py</param> <param name="program">next_song.py</param>
</input> </input>
<instance> <instance>
<username>othersource</username> <username>{{ source_username }}</username>
<password>hackmemore</password> <password>{{ source_password }}</password>
<mount>/radio-bullshit.ogg</mount> <mount>/radio-bullshit.ogg</mount>
</instance> </instance>
</stream> </stream>