12-08-2023, 01:17 PM
(12-08-2023, 12:08 PM)Nutul Wrote:(12-08-2023, 05:05 AM)PatiTati Wrote: Good morning everyone,
I need your help. I have set up a Raspberry Pi with the latest Moode 8.3.6. In the environment in which we use this web radio, a proxy server is required for internet access. Do you have any idea how I can tell the system to go through a defined proxy server every time it accesses the Internet (e.g. CURL of the radio stream)?
If I set global variables that are actually taken into account by cURL, does this also work with Moode Audio?
e.g.
Quote:Using environment variables
Another way to use proxy with curl is to set the environment variables http_proxy and https_proxy.
Note that setting proxy using environment variables works only with MacOS and Linux. For Windows, see the next section which explains how to use _curlrc_curlrc file.
If you look at the first part of these variable names, it clearly shows the protocol for which these proxies will be used. It has nothing to do with the protocol used for the proxy server itself.Simply set the variables http_proxy to http proxy address and https_proxy to set https proxy address. Open terminal and run these two commands.
- http_proxy – the proxy will be used to access addresses that use http protocol
- https_proxy – the proxy will be used to access addresses that use https protocol
I have already set the global varibales but no radio stream is working. The GUI always shows CURL failed and Timeout.
Many thanks in advance for your help.
Regards
Patrick
Maybe I am missing something, but why do you need CURL...?
Can you specify your scenario? Some radio station uri / example?
cURL and its library is used from MPD inside Moode Audio to retrieve audio information / data from the network / internet. (e.g. Stream Radio)
And if you are in environments that require a web proxy to get Internet access (mostly business environments), you must specify this with every HTTP / HTTPS request that is outgoing from your device. If you do not do this, your HTTP / HTTPS request will go directly to the destination, which is not permitted due to the monitoring and control options of the IT department. Topic: Security in a business network