As per the advice here, I specified the local IP of the origin to cdn_point_of_entry.In this case, Edge will accept subscribers on public IP and will pull streams from Origin via private IP. You should set IP addresses, not hostnames.
As a result, CDN will be available for external clients, and private network will be used for internal CDN traffic.
Then /cdn/show_nodes outputs the local IP of the edge.
(If specify the global IP of the origin to cdn_point_of_entry, then the edge IP is a global IP.)
We need the global IP because we are calling /cdn/show_nodes from the client and selecting the edge connection destination.
1. I want to set cdn_point_of_entry to local IP for internal CDN traffic.
2. It doesn't matter what method I use, I want to get a list of global IPs of the edge.
Do you have any advice?
Code:
ip={{ GLOBAL }}
ip_local=192.168.0.2
cdn_ip=192.168.0.2
cdn_enabled=true
cdn_nodes_resolve_ip=false
cdn_role=origin
cdn_point_of_entry=
Code:
ip={{ GLOBAL }}
ip_local=192.168.0.100
cdn_ip=192.168.0.100
cdn_enabled=true
cdn_nodes_resolve_ip=false
cdn_role=edge
cdn_point_of_entry=192.168.0.2