فهرست منبع

added ispooge.com with live video and media mounts

Harlan Iverson 7 سال پیش
والد
کامیت
b36105dda8

+ 1 - 0
ispooge.com/.dockerignore

@@ -0,0 +1 @@
+media

+ 1 - 0
ispooge.com/.gitignore

@@ -0,0 +1 @@
+media

+ 6 - 0
ispooge.com/build.sh

@@ -0,0 +1,6 @@
+#!/bin/bash
+
+source env-myapp.sh
+
+
+docker build -t $IMAGE image

+ 7 - 0
ispooge.com/env-myapp.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+
+export IMAGE=arm32v6/ispooge.com-static
+export ENV=dev
+
+export NAME=ispooge.com-static-$ENV
+export VIRTUAL_HOST=ispooge.com,ispooge3qejnwx67.onion

+ 3 - 0
ispooge.com/image/Dockerfile

@@ -0,0 +1,3 @@
+FROM frozenfoxx/rpi-nginx:v1.11.5
+COPY static/ /usr/share/nginx/html
+#VOLUME /usr/share/nginx/html/media

+ 18 - 0
ispooge.com/image/nav.html

@@ -0,0 +1,18 @@
+<html>
+<head><title></title></head>
+
+
+
+<div>
+<ul>
+<li>Hardware
+<li>Software
+<li>Opinion
+<li>E/N
+<li>Send a Tip
+</ul>
+
+</div>
+
+
+</html>

+ 46 - 0
ispooge.com/image/static/index.html

@@ -0,0 +1,46 @@
+<html>
+<head><title>iSpooge</title></head>
+<body>
+
+
+<p>iSpooge Daily... do you<a href="media/jarg300.txt" target="dict" title=":spooge: /spooj/ 1. n. Inexplicable or arcane code, or random and probably incorrect output from a computer program.  2. vi. To generate spooge (sense 1).">?</a></p>
+
+
+<p>Tune in on <a href="https://pscp.tv/iSpoogeDaily">Periscope</a> 
+or <a href="https://www.facebook.com/ispooge/">Facebook Live</a>
+or <a href="https://www.youtube.com/channel/UCUMn9G0yzhQWXiRTOmPLXOg">YouTube Live</a> 
+or <a href="https://twitch.tv/iSpoogeDaily">Twitch</a>.</p>
+
+<p>Updates on <a href="https://twitter.com/ispoogedaily">Twitter</a> or below.</p>
+
+<p>Drop me a line to come on the show: social at this domain.com or (four one f1ve).93 seven.7four67</P>
+
+<h4>Programming</h4>
+
+
+<ul>
+<li> <a href="https://tinydatacenter.com">Building TinyDataCenter - unaffected by Intel bugs because they use ARM processors.</a>
+<li> Feature Shows
+<li> <a href="https://www.youtube.com/playlist?list=PLD5lYPY-uZprdkvPpGUAoG5U0qN2u6MVi">Tech Politics</a>
+<li> Tutorials, Office Hours, Live Q&A
+<li> <a href="https://www.youtube.com/playlist?list=PLD5lYPY-uZpr_oPc67A00sUFk5F5sPLWy">Lifestyle, Food, Fitness</a>
+</ul>
+
+<p>
+<!--
+Catch our debut show, <a href="https://calendar.google.com/event?action=TEMPLATE&tmeid=M3M2NXBrdjU1ZHQ2dWlhMmwzcTc4NDMzZDRfMjAxNzEyMTdUMDAwMDAwWiBmdnJhOTRuOW90aXNwazVjMWE4ZHQ4YnRhZ0Bn&tmsrc=fvra94n9otispk5c1a8dt8btag%40group.calendar.google.com&scp=ALL">Hackurday</a>, this Saturday 12/16 at 4PM Pacific Time; 
+-->
+See our <a href="https://calendar.google.com/calendar?cid=ZnZyYTk0bjlvdGlzcGs1YzFhOGR0OGJ0YWdAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ">calendar</a> here.
+</p>
+
+
+<a class="twitter-timeline" data-lang="en" data-dnt="true" href="https://twitter.com/iSpoogeDaily?ref_src=twsrc%5Etfw">Tweets by iSpoogeDaily</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 
+
+
+<!--
+<a class="twitter-grid" data-width="50%" data-nofooter="true"  data-limit="3" data-dnt="true" href="https://twitter.com/iSpoogeDaily?ref_src=twsrc%5Etfw">iSpooge Tweets</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 
+
+
+-->
+
+</html>

+ 25 - 0
ispooge.com/image/static/live.html

@@ -0,0 +1,25 @@
+<html>
+<head><title>iSpooge</title></head>
+<link rel="stylesheet" href="video-js.min.css">
+<body>
+
+
+<p>iSpooge Daily... do you?</p>
+
+<p><strong>HEY welcome - this is a high bandwidth stream.</strong> I've yet to implement a lower rate mobie stream. Please tune in at home :).</p>
+
+<video id=example-video width=1280 height=720 class="video-js vjs-default-skin" controls>
+  <source
+     src="hls/ispoogedaily/index.m3u8"
+     type="application/x-mpegURL">
+</video>
+<script src="video.js"></script>
+<script src="videojs-contrib-hls.js"></script>
+<script>
+var player = videojs('example-video');
+player.play();
+</script>
+
+
+</body>
+</html>

+ 28 - 0
ispooge.com/image/static/segmented-video.html

@@ -0,0 +1,28 @@
+<html>
+<head><title>iSpooge</title></head>
+<link rel="stylesheet" href="video-js.min.css">
+<body>
+
+<p>iSpooge Daily... do you?</p>
+
+<p><strong>HEY welcome - this is a high bandwidth stream.</strong> I've yet to implement a lower rate mobie stream. Please tune in at home :).</p>
+
+<p>Sample of a segmented video file. 2sec max segment. Need to confirm keyframe alignment. ~450KB, should cache OK.</p>
+
+<video id=example-video width=1280 height=720 class="video-js vjs-default-skin" controls>
+  <source
+     src="media/tinydc/webserver/out.m3u8"
+     type="application/x-mpegURL">
+
+
+</video>
+<script src="video.js"></script>
+<script src="videojs-contrib-hls.js"></script>
+<script>
+var player = videojs('example-video');
+player.play();
+</script>
+
+
+</body>
+</html>

+ 15 - 0
ispooge.com/start-myapp.sh

@@ -0,0 +1,15 @@
+#!/bin/bash
+
+source env-myapp.sh
+
+
+docker run \
+  --name $NAME \
+  --restart always \
+  --mount type=bind,source=/tmp/hls/ispooge.com,target=/usr/share/nginx/html/hls,readonly \
+  --mount type=bind,source=$HOME/ispooge-media,target=/usr/share/nginx/html/media,readonly \
+  -h $VIRTUAL_HOST \
+  -p 80:80 \
+  -d \
+  -e VIRTUAL_HOST=$VIRTUAL_HOST \
+  $IMAGE

+ 5 - 0
ispooge.com/stop-myapp.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+source env-myapp.sh
+
+docker rm -f $NAME

+ 1 - 1
rtmp-proxy-docker/fix-perms.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
 
-sudo chmod -R a+rx /tmp/hls/ispooge.com/ispoogedaily
+sudo chmod -R a+rwx /tmp/hls/ispooge.com

+ 0 - 3
rtmp-proxy-docker/start.sh

@@ -9,9 +9,6 @@ if [ ! -d /tmp/hls/ispooge.com ]; then
   mkdir -p /tmp/hls/ispooge.com
 fi
 
-chmod -R a+rx /tmp/hls
-chmod a+ws /tmp/hls/ispooge.com
-
 
 docker run \
  --name rtmp-proxy \