Le M3U fonctionne mieux, le player est moins gangé tout comme la config
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
42bd4abdee
commit
ef6ee2e3c6
@ -6,6 +6,8 @@ export max_listeners=${MAX_LISTENERS:=30}
|
|||||||
export admin_user=${ADMIN_USER:=admin}
|
export admin_user=${ADMIN_USER:=admin}
|
||||||
export admin_password=${ADMIN_PASSWORD:=admin}
|
export admin_password=${ADMIN_PASSWORD:=admin}
|
||||||
|
|
||||||
|
m3u=${M3U:="http://${hostname}:${port}/radio-bullshit"}
|
||||||
|
|
||||||
pass_gen="python3 -c 'import secrets, string; print(\"\".join((secrets.choice(string.ascii_letters + string.digits) for i in range(20))))'"
|
pass_gen="python3 -c 'import secrets, string; print(\"\".join((secrets.choice(string.ascii_letters + string.digits) for i in range(20))))'"
|
||||||
|
|
||||||
export source_username=$(eval $pass_gen)
|
export source_username=$(eval $pass_gen)
|
||||||
@ -14,6 +16,8 @@ export source_password=$(eval $pass_gen)
|
|||||||
j2 ices.xml.jinja > ices.xml
|
j2 ices.xml.jinja > ices.xml
|
||||||
j2 icecast.xml.jinja > icecast.xml
|
j2 icecast.xml.jinja > icecast.xml
|
||||||
|
|
||||||
|
echo ${m3u} > /usr/share/icecast2/web/radio-bullshit.m3u
|
||||||
|
|
||||||
runuser -l zambla -c 'icecast2 -c /config/icecast.xml &'
|
runuser -l zambla -c 'icecast2 -c /config/icecast.xml &'
|
||||||
/opt/ultrasync.sh &
|
/opt/ultrasync.sh &
|
||||||
runuser -l zambla -c 'ices2 /config/ices.xml'
|
runuser -l zambla -c 'ices2 /config/ices.xml'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<icecast>
|
<icecast>
|
||||||
<location>Earth</location>
|
<location>Earth</location>
|
||||||
<admin>icemaster@localhost</admin>
|
<admin>icemaster@{{ hostname }}</admin>
|
||||||
|
|
||||||
<limits>
|
<limits>
|
||||||
<clients>100</clients>
|
<clients>100</clients>
|
||||||
@ -21,13 +21,14 @@
|
|||||||
|
|
||||||
<hostname>{{ hostname }}</hostname>
|
<hostname>{{ hostname }}</hostname>
|
||||||
|
|
||||||
|
<http-headers>
|
||||||
|
<header name="Access-Control-Allow-Origin" value="*" />
|
||||||
|
<header name="X-Robots-Tag" value="index, noarchive" />
|
||||||
|
</http-headers>
|
||||||
|
|
||||||
<listen-socket>
|
<listen-socket>
|
||||||
<port>{{ port }}</port>
|
<port>{{ port }}</port>
|
||||||
</listen-socket>
|
</listen-socket>
|
||||||
<http-headers>
|
|
||||||
<header name="Access-Control-Allow-Origin" value="*" />
|
|
||||||
</http-headers>
|
|
||||||
|
|
||||||
|
|
||||||
<mount type="normal">
|
<mount type="normal">
|
||||||
<mount-name>/radio-bullshit</mount-name>
|
<mount-name>/radio-bullshit</mount-name>
|
||||||
@ -36,18 +37,9 @@
|
|||||||
<password>{{ source_password }}</password>
|
<password>{{ source_password }}</password>
|
||||||
|
|
||||||
<max-listeners>{{ max_listeners }}</max-listeners>
|
<max-listeners>{{ max_listeners }}</max-listeners>
|
||||||
<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-override>1</fallback-override>
|
|
||||||
<fallback-when-full>1</fallback-when-full>
|
|
||||||
<intro>/example_intro.ogg</intro>
|
|
||||||
<hidden>1</hidden>
|
<hidden>1</hidden>
|
||||||
<public>1</public>
|
<public>1</public>
|
||||||
<http-headers>
|
|
||||||
<header name="Access-Control-Allow-Origin" value="http://webplayer.example.org" />
|
|
||||||
<header name="baz" value="quux" />
|
|
||||||
</http-headers>
|
|
||||||
</mount>
|
</mount>
|
||||||
|
|
||||||
<fileserve>1</fileserve>
|
<fileserve>1</fileserve>
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
<username>{{ source_username }}</username>
|
<username>{{ source_username }}</username>
|
||||||
<password>{{ source_password }}</password>
|
<password>{{ source_password }}</password>
|
||||||
<mount>/radio-bullshit</mount>
|
<mount>/radio-bullshit</mount>
|
||||||
|
<port>{{ port }}</port>
|
||||||
</instance>
|
</instance>
|
||||||
</stream>
|
</stream>
|
||||||
</ices>
|
</ices>
|
||||||
|
15
index.html
15
index.html
@ -1,11 +1,22 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Radio bullshit, la radio du paradis !</title>
|
||||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<audio controls>
|
<audio controls autoplay preload="none">
|
||||||
<source src="/radio-bullshit" type="audio/ogg">
|
<source src="/radio-bullshit?type=.ogg/;" type="application/ogg">
|
||||||
</audio>
|
</audio>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/radio-bullshit">VLC Stream</a></li>
|
||||||
|
<li><a href="/radio-bullshit.m3u">M3U file</a></li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user