<relay> ignores <authentication> elements
If you just relay streams and want users to authenticate in order to get the stream, I'd expect to extend my definition by a <authentication type="">
stanza. However, this does not work.
A rather counter-intuitive solution is to set up a <mount>
with the same name and define authentication there.
I'd expect an <authentication>
inside a <relay>
to work.
Example configuration which I expected to work:
<relay>
<server>some.server.net</server>
<port>8000</port>
<mount>/remotemount</mount>
<local-mount>/relay-auth</local-mount>
<on-demand>1</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="auth_header" value="icecast-auth-user: 1"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</relay>