react-native-webrtc-server icon indicating copy to clipboard operation
react-native-webrtc-server copied to clipboard

Deploy with https

Open abhitheawesomecoder opened this issue 8 years ago • 3 comments

I am trying to deploy this react-native-webrtc-server on my VPS with SSL ( https ) I am following the steps below :

  1. installed node and running server on http://127.0.0.1:8080
  2. using niginx as reverse proxy and in the niginx server block adding it like this location / { proxy_pass http://127.0.0.1:8080; . .
  3. accessing website like this https://mywebsite.com

now when I access https://mywebsite.com it is not connected to node server but when i access it like this http://mywebsite.com:8080 it works but without ssl

How are you able to make it work with SSL (https) Do i need to use https on both reverse proxy( niginx) as well as on node server ( i.e. https://127.0.0.1:8080)? At present I am using https on niginx reverse proxy but not on node server.

Please give some directions as I can see you have successfully deployed it on your heroku server with https (SSL)

abhitheawesomecoder avatar Aug 02 '17 12:08 abhitheawesomecoder

You can check it here https://myreactnative.com/

abhitheawesomecoder avatar Aug 02 '17 13:08 abhitheawesomecoder

i just did it yesterday, nginx/letsencrypt and pm2

you fixed it ?

can share my config if needed

smolleyes avatar Aug 25 '17 10:08 smolleyes

i have the same problem i want to deploy it on google cloud compute engine or app engine but it don't work @smolleyes could you please share your config

hameed0z avatar May 14 '18 13:05 hameed0z