From dc82e99a88daa912cec060eab62c8056054b5a7a Mon Sep 17 00:00:00 2001 From: Charlotte Som Date: Tue, 20 Jan 2026 04:54:33 +0000 Subject: [PATCH] add watch.bun.how for watch party --- ngx/build.sh | 1 + ngx/watch-bun-how.ts | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 ngx/watch-bun-how.ts diff --git a/ngx/build.sh b/ngx/build.sh index b931532..a0cc539 100755 --- a/ngx/build.sh +++ b/ngx/build.sh @@ -9,5 +9,6 @@ deno run ./charlotte-partners.ts > out/charlotte-partners.conf deno run ./charlotte-partners-labeler.ts > out/charlotte-partners-labeler.conf deno run ./bfuse-filter-umm-gay.ts > out/bfuse-filter-umm-gay.conf deno run ./hang-out-while-she-watches.ts > out/hang-out-while-she-watches.conf +deno run ./watch-bun-how.ts > out/watch-bun-how.conf deno run ./cocoon.ts > out/cocoon.conf deno run ./paper-k256-umm-gay.ts > out/paper-k256-umm-gay.conf diff --git a/ngx/watch-bun-how.ts b/ngx/watch-bun-how.ts new file mode 100644 index 0000000..12ff4cf --- /dev/null +++ b/ngx/watch-bun-how.ts @@ -0,0 +1,27 @@ +import ngx from "jsr:@char/ngx@0.1"; + +export const config = ngx("", [ + ngx("map $http_upgrade $connection_upgrade", [ + "default upgrade", + "'' close" + ]), + [], + ngx("server", [ + [ + "server_name watch.bun.how", + ...ngx.listen(), + ...ngx.letsEncrypt("watch.bun.how"), + ], + ngx("location /", [ + "client_max_body_size 1G", + "proxy_pass http://127.0.0.9:8524", + "proxy_http_version 1.1", + "proxy_set_header Upgrade $http_upgrade", + "proxy_set_header Connection $connection_upgrade", + "proxy_set_header Host $host", + "proxy_read_timeout 300s", + ]), + ]), +]); + +if (import.meta.main) console.log(config.build());