Minor doc changes
This commit is contained in:
parent
f92a55a053
commit
a7f4469c15
45
README.md
45
README.md
@ -24,12 +24,47 @@ npm run dev
|
||||
npm run dev -- --open
|
||||
```
|
||||
|
||||
## Building
|
||||
## Nix Deployment
|
||||
|
||||
To create a production version of your app:
|
||||
I use Caddy for TLS.
|
||||
|
||||
```sh
|
||||
npm run build
|
||||
```
|
||||
plebsaber.stream {
|
||||
reverse_proxy http://127.0.0.1:8037
|
||||
}
|
||||
```
|
||||
|
||||
You can preview the production build with `npm run preview`.
|
||||
I use sops-nix to deploy the flake with OAuth secrets.
|
||||
|
||||
```js
|
||||
sops = {
|
||||
defaultSopsFile = ./sops.yaml;
|
||||
secrets = {
|
||||
"plebsaber-stream.env" = {
|
||||
sopsFile = ../_sops/plebsaber-stream.env;
|
||||
format = "dotenv";
|
||||
restartUnits = [ "plebsaber-stream.service" ];
|
||||
};
|
||||
}
|
||||
};
|
||||
services.plebsaber-stream = {
|
||||
enable = true;
|
||||
environmentFile = config.sops.secrets."plebsaber-stream.env".path;
|
||||
};
|
||||
```
|
||||
|
||||
Then add the flake from this repository into your flake inputs.
|
||||
|
||||
```js
|
||||
inputs.plebsaber-stream = {
|
||||
url = "git+https://git.plebsaber.stream/pleb/plebsaber.stream.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
```
|
||||
|
||||
For updates, push commits to a repository and then update your flake.
|
||||
|
||||
```sh
|
||||
nix flake lock --update-input plebsaber-stream
|
||||
nixos-rebuild test .#webserver
|
||||
```
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
<section class="py-8 prose prose-invert max-w-none">
|
||||
<h1 class="font-display tracking-widest">Guides</h1>
|
||||
<p>The best starting point for reading about Beat Saber is the <a href="https://bsmg.wiki" target="_blank" rel="noreferrer">bsmg.wiki</a>. This page has some complementary community-written advice for finding maps to play and maps to <code>!bsr</code> your favorite Twitch streamers. Contributions welcome.</p>
|
||||
<p>The best starting point for reading about Beat Saber is the <a href="https://bsmg.wiki" target="_blank" rel="noreferrer">bsmg.wiki</a>, and then <a href="https://bsaber.com" target="_blank" rel="noreferrer"></a>Beast Saber</a>. This page has some complementary community-written advice for finding maps to play and maps to <code>!bsr</code> your favorite Twitch streamers. Contributions welcome.</p>
|
||||
|
||||
<div class="not-prose grid gap-4 sm:grid-cols-2 lg:grid-cols-3 mt-6">
|
||||
<a href="/guides/beatleader-auth" class="card-surface p-5 block">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user