fixed a menu :3

Live
Johannes Hendrik Gerard van der Weide 2023-10-27 11:50:11 +02:00
parent 505fee778f
commit 31e6b3317a
2 changed files with 18 additions and 14 deletions

View File

@ -389,8 +389,9 @@ platform without adds or corporate influence and thus owncast.</p>
but I couldnt find any wiki pages or concrete owncast configurations
online, I did eventually get it working and will share my configuration
here.</p>
<div id="the-owncast-part-of-the-config" class="section level3">
<h3>The Owncast part of the config</h3>
</div>
<div id="the-owncast-part-of-the-config" class="section level2">
<h2>The Owncast part of the config</h2>
<p>This part is the easiest it is simply enabling it setting an unused
port (the default and recommended is 8080) and then let owncast open
that part of the firewall.</p>
@ -400,8 +401,8 @@ that part of the firewall.</p>
openFirewall = true;
};</code></pre>
</div>
<div id="the-nginx-part" class="section level3">
<h3>The nginx part!</h3>
<div id="the-nginx-part" class="section level2">
<h2>The nginx part!</h2>
<p>Nginx is needed to setup a proxy so we can link owncast to our domain
and ensure everything will run securely. We begin by setting the
(sub)domain that we wish to point at owncast and we enable SSL and ACME.
@ -423,9 +424,8 @@ that to true as wel, the extra config is to ensure our proxy works.</p>
};
};</code></pre>
</div>
<div id="the-full-config-and-some-extra-information"
class="section level3">
<h3>The full config and some extra information</h3>
<div id="the-full-config" class="section level2">
<h2>The full config</h2>
<p>Your entire config should look something like this now at which point
you can sudo nixos-rebuild switch!:</p>
<pre><code>{ config, pkgs, ... }:
@ -452,6 +452,9 @@ you can sudo nixos-rebuild switch!:</p>
};
};
}</code></pre>
</div>
<div id="extra-information" class="section level2">
<h2>Extra information</h2>
<p>We are not done yet however there is one more this that is required
on the nixos side of things and quite a few things in your owncast
webpage.</p>
@ -474,8 +477,8 @@ href="rtmp://yourdomain.net:1935/live"
class="uri">rtmp://yourdomain.net:1935/live</a> with the streamkey you
just set!</p>
</div>
<div id="further-help" class="section level3">
<h3>Further help</h3>
<div id="further-help" class="section level2">
<h2>Further help</h2>
<p>If you need extra configuring (and know what you are doing) more
owncast options can be found <a
href="https://search.nixos.org/options?channel=unstable&amp;from=0&amp;size=50&amp;sort=relevance&amp;type=packages&amp;query=owncast">here</a>
@ -485,7 +488,6 @@ date with Nix pkgs? run <code>nix-channel --update</code>. Lastely if
this guide gets out of date my current owncast config can be found <a
href="https://git.saragerretsen.nl/Hertog/HermitCollective.nix/src/branch/main/services/owncast.nix">here</a>.</p>
</div>
</div>

View File

@ -16,7 +16,7 @@ Which to me is perfect! I really wanted to get back into livestreaming (I used t
## As for NixOS
I use NixOS to selfhost everything I can (including this website!) but I couldn't find any wiki pages or concrete owncast configurations online, I did eventually get it working and will share my configuration here.
### The Owncast part of the config
## The Owncast part of the config
This part is the easiest it is simply enabling it setting an unused port (the default and recommended is 8080) and then let owncast open that part of the firewall.
```
@ -27,7 +27,7 @@ services.owncast = {
};
```
### The nginx part!
## The nginx part!
Nginx is needed to setup a proxy so we can link owncast to our domain and ensure everything will run securely.
We begin by setting the (sub)domain that we wish to point at owncast and we enable SSL and ACME.
The locations part needs to point at the port we set earlier so that nginx knows to point at owncast.
@ -50,7 +50,7 @@ Owncast also needs websockets so we set that to true as wel, the extra config is
};
```
### The full config and some extra information
## The full config
Your entire config should look something like this now at which point you can sudo nixos-rebuild switch!:
```
{ config, pkgs, ... }:
@ -78,6 +78,8 @@ Your entire config should look something like this now at which point you can su
};
}
```
## Extra information
We are not done yet however there is one more this that is required on the nixos side of things and quite a few things in your owncast webpage.
While we did setup nginx for this owncast we didn't do a full nginx setup, this is because in my homeserver nginx is used for many things and I want to avoid duplicate nix code so I have a separate nginx config which can be found [here](https://git.saragerretsen.nl/Hertog/HermitCollective.nix/src/branch/main/services/nginx.nix).
@ -89,7 +91,7 @@ Luckely there is the owncast admin page you just logged into for that, either hi
When you are done with that open your favourite streaming application set the livestreaming service to custom and use this link rtmp://yourdomain.net:1935/live with the streamkey you just set!
### Further help
## Further help
If you need extra configuring (and know what you are doing) more owncast options can be found [here](https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=owncast) and the owncast documentation can be found [here](https://owncast.online/docs/).
Is your version not up to date with Nix pkgs? run ``` nix-channel --update ```.
Lastely if this guide gets out of date my current owncast config can be found [here](https://git.saragerretsen.nl/Hertog/HermitCollective.nix/src/branch/main/services/owncast.nix).