Jump to content

I got myself in quite a mess...


Premby

Recommended Posts

Premby

Hello everyone, 

 

I want to reach my emby server through https://my_website.test. Emby is hosted on a dedicated server running ubuntu 18.04 no gui. The server is reachable through his public ip (a.b.c.d). 

 

Emby

I installed emby headlessly and changed the ports:

  • local http port: 8080
  • local https port: 4442
  • public http port: 8992
  • public https port: 8993

I also added some users and test media files. 

 

-> I can reach emby only with the local http port and the public ip/ domain name (a.b.c.d:8080 or my_website.test:8080). When I change the local http port to 80, emby can still only be reached through the port 8080. 

 

 

nginx

I installed nginx and followed the instructions of one of the posts here in the forum. 

 

SSL

First I used Letsencrypt and Certbot to get my SSL certificate, but it seemed it didn't work properly, so I got the SSL certificate through Cloudflare and added the PKCS#12 file to emby aswell as my external domain name (my_webiste.test)

 

-> I added the SSL paths to the nginx config, but still no connection through https. 

 

 

All mentioned ports are unlocked on ufw firewall, aswell as nginx. 

I hope someone can help me with this mess I created :9...

 

I attached the nginx config file from the /etc/nginx/sites-enabled path. 

nginx config.txt

Link to comment
Share on other sites

sargenthp

For now let's forget about public access. Are you able to reach these ports on the local network? Or is it just port 8080?

 

Sent from my PH-1 using Tapatalk

Link to comment
Share on other sites

when trying HTTPS are you hitting by IP or hostname? 

 

You probably need to hit it by name on HTTPS

Link to comment
Share on other sites

mastrmind11

what do your server access logs say when you try to connect?  Are you even hitting the server?  Are your cloudflare settings correct?

Link to comment
Share on other sites

Premby

For https you'll need some kind of domain name.

 

I already bought a domain and linked it to my server ip. I got the https certifacte from cloudflare. 

 

 

 

what do your server access logs say when you try to connect?  Are you even hitting the server?  Are your cloudflare settings correct?

How can I check my "server access logs"? 

Link to comment
Share on other sites

mastrmind11

well, nginx has a log you can check, as does your server.  google around, there are plenty of tutorials.

Link to comment
Share on other sites

BAlGaInTl

Definitely need to check logs.

 

How did you create the certificate file for Emby from the Cloudflare certificates and keys?

Link to comment
Share on other sites

germanicus

I vaguely remember having issues using cloudflare for DNS with my own SSL certificate. If I remember correctly cloudflare defaults to using it's shared SSL certificate which creates issues. I believe if you mess with the SSL settings for your domain on cloudflare, try switching to different modes, that might make the difference.

Link to comment
Share on other sites

BAlGaInTl

I vaguely remember having issues using cloudflare for DNS with my own SSL certificate. If I remember correctly cloudflare defaults to using it's shared SSL certificate which creates issues. I believe if you mess with the SSL settings for your domain on cloudflare, try switching to different modes, that might make the difference.

If you use Cloudflare, there is no reason no to use their certs... they will generate a 15 year cert for you. Alot better than having to update every 90 days.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...