Clustering works on IP but not on domain (with or without SSL) #1587
-
Describe the bug If I do the same on the edge server, it works fine if I use its IP in ws. However, it doesn't work when using a domain name pointing to the edge IP, regardless if I use ws or wss. To Reproduce On trying to connect to the edge server using the domain:
Expected behavior Server (please complete the following information): OvenmediaEngijne version 0.16.5 Nginx to serve. Nginx for the origin server is here: https://pastebin.com/qZuDBk5R Player (please complete the following information): Additional context Assumed that I would be facing issues due to nginx, but if so, not sure why it works on edge using the IP and on origin using both the IP and It's Origin Domain (with ws and was). Variables in env file for OME are: for edge: OME_HOST_IP=0.0.0.0 DEFAULT_ORIGIN_SERVER=# ORIGIN IP and for origin: OME_HOST_IP=0.0.0.0 I am assigning all needed ports in the docker compose files on both edge and origin as per the documentation. Again, oddly enough this works well on edge using the IP of the edge machine, but not using the Domain associated to that IP |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I'm not sure this is the exact solution to your problem but using the full domain name instead of wildcards (*) can help simplify ICE connectivity. I wonder if removing the wildcards from your config will help... |
Beta Was this translation helpful? Give feedback.
-
Since this does not appear to be a bug in OME, I moved it to discussion. If it is identified as a bug during discussion, I will move it back to the issue board. I don't know how nginx is configured. Is nginx proxying in front of OME Origin and nginx also proxying in front of OME Edge? I don't know much about nginx, but from a quick glance it looks like you are trying to proxy all OME ports through nginx. I understand that nginx can only proxy HTTP. Nginx will not be able to proxy WebRTC ICE, SRT, etc. |
Beta Was this translation helpful? Give feedback.
-
@getroot @bchah, thank you for your input. I've moved all ports out of Nginx and directly mounted them on the OME container in docker-compose for both edge and origin. I've had the same results. It works when I use the IP, but it doesn't work on the domain. Origin works both on IP and domain. Will continue to investigate further and report here. |
Beta Was this translation helpful? Give feedback.
Does the domain include an IPv6 address (AAAA record)? If so, you need to enable IPv6 in OME as well, or remove the AAAA record from the domain.
https://airensoft.gitbook.io/ovenmediaengine/configuration/ipv6