custom owncast theme https://github.com/owncast/owncast

forest 120166b624 video passthrough and cleaning up audio playing logic 1 week ago
cachingproxy c0deebd174 fix 1 nanosecond active health check :X 1 week ago
facecam 120166b624 video passthrough and cleaning up audio playing logic 1 week ago
styles 06eaf450c7 make chat toggle purple & add cyberia to profile 2 weeks ago
.gitignore 47f12ae4ee got face cam and notifications working !! 1 week ago
Dockerfile cb720e188f add social media preview image 1 week ago
README.md 323a46cd00 fixed websocket not being handled correctly 2 weeks ago
avatar.jpg 935ba59a06 finishing touches 2 weeks ago
banner.png cb720e188f add social media preview image 1 week ago
build.sh 47f12ae4ee got face cam and notifications working !! 1 week ago
config.yml 120166b624 video passthrough and cleaning up audio playing logic 1 week ago
content.md 06eaf450c7 make chat toggle purple & add cyberia to profile 2 weeks ago
favicon.ico 4e493c9042 first commit of owncast theme 2 weeks ago
index.html 4e493c9042 first commit of owncast theme 2 weeks ago
logo.png 4e493c9042 first commit of owncast theme 2 weeks ago
logo.svg 4e493c9042 first commit of owncast theme 2 weeks ago
metadata.html 4e493c9042 first commit of owncast theme 2 weeks ago
owncast-logo.svg 4e493c9042 first commit of owncast theme 2 weeks ago
run.sh 323a46cd00 fixed websocket not being handled correctly 2 weeks ago
static.gif 4e493c9042 first commit of owncast theme 2 weeks ago
static2.gif 4e493c9042 first commit of owncast theme 2 weeks ago
tree.txt 4e493c9042 first commit of owncast theme 2 weeks ago

README.md

sequentialread-stream

custom owncast theme

https://github.com/owncast/owncast

owncast-caching-proxy

When I first set up owncast I was trying to use an nginx configuration to enable me to run owncast on my workstation (better at transcoding video) but keep the site up even when my workstation is shut down.

However nginx is not very good at active health checks (ok, maybe I was too lazy to figure out how to upgrade it 😳) and it would always seem to load extremely slowly when the workstation was not running owncast. nginx would take a little bit of time to time out before falling back to the cached version, and this was exacerbated by the way that owncast loads its 20-or-so javascript files one at a time.

I know its silly, but I decided to simply write up the exact caching proxy I wanted in Go instead.

I pushed it to docker hub as a multi-arch docker container: https://hub.docker.com/r/sequentialread/owncast-caching-proxy/tags?page=1&ordering=last_updated

I used this docker-compose configuration on my web server to front owncast, which runs on my laptop (192.168.0.46 is my laptop's IP address on my home network):

stream:
  image: sequentialread/owncast-caching-proxy:0.0.15
  command: 192.168.0.46:8080
  volumes:
    - /dockerdata/owncast-caching-proxy/cache:/app/cache
  expose:
    - "8080"
  environment:
    DEBUG: 0

For more information see: https://sequentialread.com/how-to-stream-with-owncast-on-a-low-powered-server