mostly improvements
[distro-setup] / filesystem / etc / nginx / conf.d / rtmp.conf
diff --git a/filesystem/etc/nginx/conf.d/rtmp.conf b/filesystem/etc/nginx/conf.d/rtmp.conf
new file mode 100644 (file)
index 0000000..4a47eda
--- /dev/null
@@ -0,0 +1,13 @@
+# based on https://opensource.com/article/19/1/basic-live-video-streaming-server#comments
+# and https://github.com/arut/nginx-rtmp-module/wiki/Directives
+rtmp {
+    allow publish 127.0.0.1;
+    deny publish all;
+    server {
+        listen 1935;
+        application live {
+            live on;
+            record off;
+        }
+    }
+}