how to bind a domain name to Intel WebRTC?
Router
210.12.xxx.xxx
WebRTC Server
192.168.1.xxx
Web browser visit:https://www.xxxx.com:3004/
got the token by base64 decoder :
{"tokenId":"580f118c6a434e36e5345253","host":"192.168.1.xxx:8080","secure":true,"signature":"MTNiUTM3PTc5NzI1ODRkYzk4NGQxZmNmOTJkODVmYWJmODQ4MDE0YmQxODhjZjlhZTA2MTUzNTAzNzgyOTRkOA=="}
but i want to get www.xxxx.com,not 192.168.1.xxx
Link Copied
Router config use "one-to-one NAT".
Hi,
You can use NGINX webserver for the same and point domain
And change the configuration in portal.toml as shown below
[portal]
keystorePath = "./cert/certificate.pfx"
hostname = "socket.domain.com" #default: ""
ip_address = "" #default: ""
port = 8080 #default: 8080
ssl = true #default: true
#The network inferface the socket.io will be bound to in case portal.ip_address (the 'ip_address' item above) is not specified or equal to "".
# networkInterface = "eth1"
and configure another domain for basic example on port 3004, 3001 redirecting to 443
And also you need to have SSL certificate for secure connection
Thanks
Naresb
Thank you very much.
For more complete information about compiler optimizations, see our Optimization Notice.