Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Proxy-Server is required, how deal with it?
#8
(12-08-2023, 12:59 PM)PatiTati Wrote:
(12-08-2023, 12:24 PM)Tim Curtis Wrote: I don't know whether the libcurl library which MPD uses picks up the environment variables but you could try something like below.

Create the file /etc/environment.d/10-proxy-server.conf containing the two lines below substituting your web proxy IP address and port.

export http_proxy="http://proxy-server-ip:port/"
export https_proxy="http://proxy-server-ip:port/"

Reboot and test

Thank you for your answer. I have already created under /etc/enviroment following Code: (Placeholder are replaced, just for clarify)

Code:
export http_proxy="http://*Proxy-Name*:*PORT*/"
export https_proxy="http://*Proxy-Name*:*PORT*/"
export no_proxy="localhost, 127.0.0.1"

But I still created the file /etc/environment.d/10-proxy-server.conf for your suggestion and filled it right away.
Unfortunately, the stream of radio stations still does not work after a restart. I can now only retrieve data via the proxy at shell level using Curl.

I found out that you can define a proxy in the mpd.conf in the "input" tab. If I enter the proxy server here, I can receive radio streams. Unfortunately, this file is overwritten and recreated by Moode Audio every time the Raspberry is restarted. Is there a way to add manual configurations to the file an it will remain over reboot?

e.g.
Code:
input {
       plugin "curl"
#       proxy "proxy.isp.com:8080"
#       proxy_user "user"
#       proxy_password "password"
}

Ok, interesting. I'll add to the TODO list to provide this option in MPD Config screen.

If you want to persist manual edits to mpd.conf try the developer tweaks feature.
https://moodeaudio.org/forum/showthread....3#pid47753
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: Proxy-Server is required, how deal with it? - by Tim Curtis - 12-08-2023, 01:36 PM

Forum Jump: