Question / Help Nginx RTMP server, how can I allow access to someone outside of LAN?

Aztechnology

New Member
Basically what I said above, currently I have a private server which anyone in my LAN can view or stream to. I have JW players setup inside to allow playback of the streams. Me and my friend are trying to do picture in picture streaming for twitch.tv by using window capture in obs on each individual stream then outputting them together in a single stream. It works great currently... for people in my LAN. But I have no idea how to allow my friend who is residing in another part of the county to stream to and access my server. This is my nginx.conf setup I managed to get to with the help of Jack0r, what do I need to change in order to allow my friend access? Or is it simply not possible outside of LAN with a configuration like this?

  1. #user nobody;
  2. worker_processes 1;

  3. #error_log logs/rtmp_error.log debug;
  4. pid logs/nginx.pid;

  5. events {
  6. worker_connections 1024;
  7. }

  8. http {
  9. access_log logs/rtmp_access.log;
  10. include mime.types;
  11. default_type application/octet-stream;
  12. allow all;
  13. sendfile on;
  14. keepalive_timeout 65;
  15. server {
  16. listen 8080;
  17. server_name localhost;
  18. # rtmp stat
  19. location /stat {
  20. rtmp_stat all;
  21. rtmp_stat_stylesheet stat.xsl;
  22. }
  23. location /stat.xsl {
  24. # you can move stat.xsl to a different location
  25. root html;
  26. }
  27. # rtmp control
  28. location /control {
  29. rtmp_control all;
  30. }
  31. error_page 500 502 503 504 /50x.html;
  32. location = /50x.html {
  33. root html;
  34. }
  35. }
  36. }

  37. rtmp {
  38. server {
  39. listen 1935;
  40. chunk_size 8192;
  41. application live1 {
  42. allow publish 192.168.1.231;
  43. deny publish all;
  44. allow play friends.external.ip;
  45. allow play all;
  46. live on;
  47. meta copy;
  48. }
  49. application live2 {
  50. allow publish friends.external.ip;
  51. deny publish all;
  52. allow play all;
  53. live on;
  54. meta copy;
  55. }
  56. }
  57. }
 
Top