Anthias icon indicating copy to clipboard operation
Anthias copied to clipboard

Support for Proxy server

Open reiabreu opened this issue 11 years ago • 22 comments

Screenly OSE should support proxy servers and proxy exceptions

reiabreu avatar Aug 01 '13 23:08 reiabreu

Feel free to add it and do a pull request. The source code is available.

Personally, I haven't used proxy servers in ages (with the exception of SSH tunnels).

vpetersson avatar Aug 02 '13 07:08 vpetersson

Lots of companies still use proxy servers. Screenly may be used as a digital signage system for companies, therefore it would be very interesting to support proxy servers. AFAIK, uzbl does not support proxy exceptions and ignores the environment variables http_proxy and no_proxy, which other browsers recognize and use. Perhaps we can replace uzbl with another browser.

reiabreu avatar Aug 02 '13 13:08 reiabreu

Why not use OpenVPN? "Companies" have enough money to setup an openvpn server, don't they?

atmosx avatar Aug 02 '13 14:08 atmosx

i tried to add this line into misc/uzbl.rc: set proxy_url = http://[user]:[pwd@[ip]:[port]

Did not work...

DSigmund avatar Jun 03 '14 11:06 DSigmund

For me the following worked. set proxy_url = http://hostname:port

@DSigmund May be authentication was the problem in your case.

samueldotj avatar Jun 24 '14 19:06 samueldotj

@samueldotj: Hm, the authentication data was correct for my proxy, I checked this

I guess uzbl does really only support a URL here without User/PWD...

On Tue, Jun 24, 2014 at 9:15 PM, Samuel Jacob [email protected] wrote:

For me the following worked. set proxy_url = http://hostname:port

@DSigmund https://github.com/DSigmund May be authentication was the problem in your case.

— Reply to this email directly or view it on GitHub https://github.com/wireload/screenly-ose/issues/158#issuecomment-47017627 .

DSigmund avatar Jun 25 '14 08:06 DSigmund

@samueldotj / @samueldotj - I've pushed a branch that (theoretically) adds support for proxy support (https://github.com/wireload/screenly-ose/tree/158). Forgot to properly tag it. Could you guys please test it? If so it should be easy to merge into master.

vpetersson avatar Nov 03 '14 18:11 vpetersson

Thanks for fixing this. I don't have a RPi currently - will check it in a week or so.

samueldotj avatar Nov 03 '14 20:11 samueldotj

@samueldotj sounds good. You check out the changes to screenly.conf and the branch and let me know.

vpetersson avatar Nov 03 '14 20:11 vpetersson

Sorry to dig up this old issue, but we need to use a proxy for the RPi´s... Tried the proxy support, but when I switch to the "158" branch, I only get a black screen. Web GUI responds normally, but I can not add Webpages ("Server can not retrieve Asset"). Is there any log I can look into? Bye, frido.

fridomac avatar Mar 31 '15 13:03 fridomac

That branch is pretty much out of date. What we need to do is to pull in and merge the latest changes, and then issue a pull request. Unfortunately I don't have enough time to do that right now.

vpetersson avatar Apr 01 '15 15:04 vpetersson

No problem, I will try and set the proxy for uzbl manually, see how far I´ll come (i presume I have to set it in ./config somewhere, or in misc/uzbl.rc?

fridomac avatar Apr 01 '15 15:04 fridomac

@over64 Let's just porting this should be enough.

vpetersson avatar Oct 05 '15 11:10 vpetersson

Is there any official support for a proxy yet?

varazir avatar Nov 26 '15 07:11 varazir

@varazir No, that's the point of this issue is to add that. :)

vpetersson avatar Nov 26 '15 09:11 vpetersson

Question since this has been removed from sprint2, how do i get the latest updates that add the misc folder to the image?

Sorry I'm just not that great with github, thanks.

jamheadjames64 avatar Apr 21 '17 10:04 jamheadjames64

Depends on your setup, but since you're commenting on this, I presume you require a proxy, you might try this and then follow the regular installation instructions.

vpetersson avatar Apr 21 '17 10:04 vpetersson

Have done, the Pi works to apt-get update but within Screenly it doesn't. When I try to put in a asset for website is cant with "Server Error: Could not retrieve file. Check the asset URL" for http://www.bbc.co.uk/news

jamheadjames64 avatar Apr 21 '17 10:04 jamheadjames64

Yeah this is because the proxy support in the system is implemented, but not in the actual Screenly stack.

vpetersson avatar Apr 21 '17 13:04 vpetersson

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '18 16:08 stale[bot]

I use redsocks on my screenly ose and point it to our internal proxy server. Here is a basic guide to get you started https://jmkhael.io/escape-proxy-hell-with-redsocks/

tyronewyatt avatar Aug 12 '19 01:08 tyronewyatt

Interesting. Good find @tyronewyatt! Thanks for sharing.

vpetersson avatar Aug 12 '19 16:08 vpetersson