From a7f4469c159bcf03ae9c408950dc3fcf9b0f34f7 Mon Sep 17 00:00:00 2001 From: pleb Date: Sun, 2 Nov 2025 08:38:07 -0800 Subject: [PATCH] Minor doc changes --- README.md | 45 ++++++++++++++++++++++++++++++---- src/routes/guides/+page.svelte | 2 +- 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b08ac21..91bd310 100644 --- a/README.md +++ b/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 +``` diff --git a/src/routes/guides/+page.svelte b/src/routes/guides/+page.svelte index a1e203b..c564ca6 100644 --- a/src/routes/guides/+page.svelte +++ b/src/routes/guides/+page.svelte @@ -4,7 +4,7 @@

Guides

-

The best starting point for reading about Beat Saber is the bsmg.wiki. This page has some complementary community-written advice for finding maps to play and maps to !bsr your favorite Twitch streamers. Contributions welcome.

+

The best starting point for reading about Beat Saber is the bsmg.wiki, and then Beast Saber. This page has some complementary community-written advice for finding maps to play and maps to !bsr your favorite Twitch streamers. Contributions welcome.