Hi!
I'm listen webradios on work behind firewall, so I need to add proxy to mpd service (input section in mpd.conf).
How to add this correctly? (because if I add proxy to /etc/mpd.conf it's dissapear after reboot)?
Best regards,
Mlaky
by mlaky » 21 Mar 2019, 16:36
by janui » 21 Mar 2019, 17:16
redis-cli hset mpdconf parameter value
parameter = "value"
redis-cli hdel mpdconf parameter
/home/your-extra-mpd.conf
by janui » 22 Mar 2019, 17:18
~/.curlrc
proxy = <proxy_host>:<proxy_port>
by mlaky » 26 Mar 2019, 11:33
janui wrote:Hi mlaky,
If you want to add one or more single lines in /etc/mpd.conf use this:It will appear in mpd.conf as:
- Code: Select all
redis-cli hset mpdconf parameter value
Remove it with this:
- Code: Select all
parameter = "value"
- Code: Select all
redis-cli hdel mpdconf parameter
If you need to add a block of lines, create a file called:Its contents will be included in /etc/mpd.conf
- Code: Select all
/home/your-extra-mpd.conf
janui
by mlaky » 26 Mar 2019, 11:33
janui wrote:Hi mlaky,
You can configure curl to use a proxy without changing mpd.conf. Create a file called:With the contents:
- Code: Select all
~/.curlrc
- Code: Select all
proxy = <proxy_host>:<proxy_port>
Search for "~/.curlrc proxy" for more information.
janui
by janui » 26 Mar 2019, 13:39
There is some code in RuneAudio for proxy support. It has no UI and has not been switched on for several years. It looks like it will work for the MPD input section, but it is also used for all sorts of other curl commands. So it may cause other problems, you will (at least) need to test dirble, lastfm, artistinfo and albumart. These are the commands to set it up:mlaky wrote:...Better way will be to use proxy property inside input section (after curl property)...Do you know how to add that with redis-cli?...
redis-cli hset proxy enable 1
redis-cli hset proxy host <YourProxyHost>
redis-cli hset proxy user <ProxyHostUser>
redis-cli hset proxy pass <ProxyHostPassword>
redis-cli hset proxy host ''
redis-cli hset proxy user ''
redis-cli hgetall proxy
redis-cli hset proxy enable 0
support RuneAudio