roblav96 1 Posted June 12, 2019 Share Posted June 12, 2019 (edited) I have the http route redirect to https with a reverse proxy, Since I'm on the https of 'https://app.emby.media' the client sends a request to: 'http://foobar.media:8096/emby/system/info/public' which results in a 'Connection Failure'. It should automatically default to https, not http when calling the 'system/info/public' route. Edited June 12, 2019 by roblav96 Link to comment Share on other sites More sharing options...
Luke 36887 Posted June 12, 2019 Share Posted June 12, 2019 Hi, what you need to do is configure your advanced server settings so that the https address is displayed as the remote address on your emby server dashboard. Link to comment Share on other sites More sharing options...
roblav96 1 Posted June 12, 2019 Author Share Posted June 12, 2019 (edited) Hi, what you need to do is configure your advanced server settings so that the https address is displayed as the remote address on your emby server dashboard. It's a browser javascript error, this method here in 'connectionmanager.js' needs to take into account the 'window.location.protocol' so it doesn't attempt an impossible request to an http url from an https url, that the browser will block. function normalizeAddress(address) { return address = address.trim(), 0 !== address.toLowerCase().indexOf("http") && (address = "http://" + address), address = replaceAll(address, "Http:", "http:"), address = replaceAll(address, "Https:", "https:") } Edited June 12, 2019 by roblav96 Link to comment Share on other sites More sharing options...
Luke 36887 Posted June 12, 2019 Share Posted June 12, 2019 Ok you're referring to the attempt on the local address. Yes you're right. When the browser protocol is https, we should skip requests to http urls because we already know they'll fail. Thanks. Link to comment Share on other sites More sharing options...
roblav96 1 Posted June 12, 2019 Author Share Posted June 12, 2019 (edited) Ok you're referring to the attempt on the local address. Yes you're right. When the browser protocol is https, we should skip requests to http urls because we already know they'll fail. Thanks. No worries friend, glad to help =] Edited June 12, 2019 by roblav96 Link to comment Share on other sites More sharing options...
Luke 36887 Posted June 15, 2019 Share Posted June 15, 2019 Can you try this again? thanks. Link to comment Share on other sites More sharing options...
Luc. 0 Posted June 19, 2019 Share Posted June 19, 2019 Same problem here. I can't add my server although it's accessible directly via its url or IP address from outside my network. Link to comment Share on other sites More sharing options...
Luke 36887 Posted June 19, 2019 Share Posted June 19, 2019 @@luc why do you feel it's the same problem? Link to comment Share on other sites More sharing options...
roblav96 1 Posted July 13, 2019 Author Share Posted July 13, 2019 @@Luke yes this works as intended now =] Link to comment Share on other sites More sharing options...
Luke 36887 Posted July 13, 2019 Share Posted July 13, 2019 Thanks for the feedback. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now