codefreeze 0 Posted November 25, 2020 Posted November 25, 2020 Hello I have just setup a Emby server on synology NAS( previously running on windows). I have setup up a DDNS on my NAS and have Let's encrypt certificate. I also searched the forum and setup reverse proxy per the instruction here: What works: 1. Local connection to the Emby server works 2. On my cellular connection, I am able to get to my server on browser using http://<ddns_host> ( port 80 is forwarded to my NAS --> emby server) What does not work: 3. When I navigate to app.emby.media using my cellular connection, my Server name shows up , after I login using Emby Connect - but when I click on the server it fails stating server in not available. One thing that was done was my server display name was changed from the original name( NAS name). Even with this #1 and #2 works however #3 does not work. Weird enough I had the same issue on my Windows server too but I did not report it. Any idea why despite me being able to reach ddns hostname , from outside home network, app.emby.media does not work?
Luke 42077 Posted November 25, 2020 Posted November 25, 2020 Hi, the browser might be rejecting your certificate. Can you provide the contents of the browser debug console? Thanks.
codefreeze 0 Posted November 25, 2020 Author Posted November 25, 2020 (edited) Hi @Luke Thank you for the quick response. Sorry I am not an expert in this,, But attached errors are the only messages I see. Since this is on my iPhone, I had to capture this by connecting to my mac. Please let me know if this helps or if you are expecting something else? I see it referencing my IP rather than the DDNS name. Edited November 25, 2020 by codefreeze
Luke 42077 Posted November 25, 2020 Posted November 25, 2020 Looks like you need to configure cors on the proxy. If you're using nginx I would suggest comparing your configuration to that of @pir8radio
pir8radio 1312 Posted November 25, 2020 Posted November 25, 2020 5 hours ago, codefreeze said: yes I am. my config is on the "about me" tab if you click Luke's link above.... What kind of proxy, and what does the config look like... also are you using domain.com/emby or emby.domain.com the first will have issues with some configs... best practice is sub domain like emby.mydomain.com
codefreeze 0 Posted November 25, 2020 Author Posted November 25, 2020 Thanks @Luke for the pointer. Thanks @pir8radio for the response. I have used the following instruction which is based on apache 2.4.. Also my ddns comes form synology so it is <connectid>.synology.me. I am not an expert so kindly be patient with me Please let me know if I have to switch this to ngnix based. If I connect http://<connectid>.synology.me. via VPN or cellular network , I am able to reach the emby home page. Only when I reach this via app.emby.media , I get the CORS error. Followed @CChris instruction I have set up the following: Forwarded 80,443 to my synology NAS from my router. Then have the following: under web/redirect i have placed .htaccess with the following. cat .htaccess RewriteEngine on RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Header always set Access-Control-Allow-Origin "*"
Luke 42077 Posted November 26, 2020 Posted November 26, 2020 It's hard to say add it looks specific to the reverse proxy configuration. If you remove the last part about access control origin does that allow emby to set that response header?
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