aboutsummaryrefslogtreecommitdiffstats
path: root/www/owncast/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'www/owncast/pkg')
-rw-r--r--www/owncast/pkg/DESCR5
-rw-r--r--www/owncast/pkg/MESSAGE5
-rw-r--r--www/owncast/pkg/PLIST9
-rw-r--r--www/owncast/pkg/README19
-rw-r--r--www/owncast/pkg/owncast.rc12
5 files changed, 50 insertions, 0 deletions
diff --git a/www/owncast/pkg/DESCR b/www/owncast/pkg/DESCR
new file mode 100644
index 0000000..80d5676
--- /dev/null
+++ b/www/owncast/pkg/DESCR
@@ -0,0 +1,5 @@
+Owncast is an open source, self-hosted, decentralized, single user
+live video streaming and chat server for running your own live
+streams similar in style to the large mainstream options. It offers
+complete ownership over your content, interface, moderation and
+audience.
diff --git a/www/owncast/pkg/MESSAGE b/www/owncast/pkg/MESSAGE
new file mode 100644
index 0000000..782a8db
--- /dev/null
+++ b/www/owncast/pkg/MESSAGE
@@ -0,0 +1,5 @@
+Before starting owncast and opening it to the public, be sure to
+change the default password and a stream key!
+
+To do that, start owncast, navigate to http://localhost:8080/admin/config/server/
+and change the defaults there.
diff --git a/www/owncast/pkg/PLIST b/www/owncast/pkg/PLIST
new file mode 100644
index 0000000..1afce25
--- /dev/null
+++ b/www/owncast/pkg/PLIST
@@ -0,0 +1,9 @@
+@newgroup _owncast:1105
+@newuser _owncast:1105:_owncast::Owncast User:/var/owncast:/sbin/nologin
+@rcscript ${RCDIR}/owncast
+@bin bin/owncast
+@mode 750
+@owner _owncast
+@group _owncast
+@sample ${LOCALSTATEDIR}/owncast/
+share/doc/pkg-readmes/${PKGSTEM}
diff --git a/www/owncast/pkg/README b/www/owncast/pkg/README
new file mode 100644
index 0000000..ccbb8fd
--- /dev/null
+++ b/www/owncast/pkg/README
@@ -0,0 +1,19 @@
++-----------------------------------------------------------------------
+| Running ${PKGSTEM} on OpenBSD
++-----------------------------------------------------------------------
+
+Owncast comes with web interface for users and a stream admin.
+Out of the box owncast listens on port 8080 on all interfaces, but
+this could be changed by passing desired values to -webserverip
+and -webserverport flags using rcctl(8).
+
+Owncast doesn't handle TLS, so you're supposed to be running it
+behind a TLS-terminating reverse-proxy if you want to host a public
+instance.
+
+On first start owncast will populate its data directory with a
+database and static files. You can add custom emojis here.
+
+Be sure to change the default admin password! It is advised to not
+forward the /admin path and the rtmp port for public access
+even though they are password-protected.
diff --git a/www/owncast/pkg/owncast.rc b/www/owncast/pkg/owncast.rc
new file mode 100644
index 0000000..86d49ac
--- /dev/null
+++ b/www/owncast/pkg/owncast.rc
@@ -0,0 +1,12 @@
+#!/bin/ksh
+
+daemon="${TRUEPREFIX}/bin/owncast"
+daemon_user="_owncast"
+daemon_logger="daemon.info"
+
+. /etc/rc.d/rc.subr
+
+rc_bg=YES
+rc_reload=NO
+
+rc_cmd $1