docker-handbrake icon indicating copy to clipboard operation
docker-handbrake copied to clipboard

iOS issued behind reverse proxy

Open samcro1967 opened this issue 5 years ago • 6 comments

I have this running and it is working well. I have it behind Caddy which is also in a docker container. I can access it internally and externally behind Caddy from Windows and OSx devices. It does not work from an iOS device either in Safari or Chrome. I get a "server disconnected (code: 1006)" error.

It looks like there are known issues with Guacamole, reverse proxies, and iOS which I think is being used here or something similiar that maybe have the same challenges with iOS. Not sure if that is what I am running into or if there is something else I am missing. I am using linuxserver/calibre which is Guacamole and it works with the same Caddy config.

I can get to it on iOS with Safari bypassing Caddy and going directly to the internal ip and port. Hoping maybe someone else has encountered this and might have some ideas.

CaddyFile v2 Config

handbrake.mydomain.net http://local.handbrake {
	encode gzip
	log {
		output file /logs/handbrake.log
		format single_field common_log
	}
	reverse_proxy 192.168.1.103:7272
}

Version Information

Microsoft Windows [Version 10.0.18363.900]
Docker version 19.03.8, build afacb8b
Handbrake 1.3.2
Docker container version - latest
Caddy v2.0.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8=
Chrome Version 83.0.4103.116 (Official Build) (64-bit)

samcro1967 avatar Jun 27 '20 20:06 samcro1967

This container is not using Guacamole, but maybe you can provide pointer to the known issue you are taking about?

Also, are you accessing the container through Caddy only via HTTP (not https)?

Can you get the browser's console output ?

jlesage avatar Jul 05 '20 00:07 jlesage

I can access it with HTTP internally directly to host and port. I can access it internally via HTTPS behind Caddy. I cannot test it internally via HTTP behing Caddy as I am not running my own DNS server, yet. The only scenario that does not work is externally via HTTPS behind Caddy. With all of the issues with Caddy v2, I suspect it is a Caddy problem, but since it sounded like there were similar issues with Guacamole, threw this out there to confirm.

Link to iOS issue that sounded similiar.

Looks like you need a Mac to connect your iPhone to in order to enable the browser console which I don't have readily access to at the moment so I can;t do this step unfortunately.

samcro1967 avatar Jul 05 '20 14:07 samcro1967

The only iOS specific issue I'm aware of is that it won't allow to make a WebSocket connection to an untrusted server... But I guess in your case the certificate is valid ?

jlesage avatar Jul 10 '20 02:07 jlesage

Caddy use Let's Enmcrypt so the cert there is valid. Internally I am not using SSL between Caddy and Handbrake.

samcro1967 avatar Jul 10 '20 11:07 samcro1967

I am also facing the same issue. I can access the Web UI internally but not behind caddy v2.

pravardhanreddy avatar Oct 02 '21 07:10 pravardhanreddy

My issue isn't related to iOS but I noticed that when I set up a synology reverse proxy rule for handbrake (the synology is running the docker container) I also see a "server disconnected" message. If I hit http://<synology_ip>:5800 it works fine. When I setup an internal DNS record (handbrake.home.net) and setup a reverse proxy rule to send http://handbrake.home.net to http://<synology_ip>:5800, the handbrake UI will load but the server wont connect. This may be related the the original posters issue since he was using a reverse proxy as well.

bglinkerman avatar Mar 26 '22 01:03 bglinkerman