add watch.bun.how for watch party

This commit is contained in:
Charlotte Som 2026-01-20 04:54:33 +00:00
parent bb45929893
commit dc82e99a88
2 changed files with 28 additions and 0 deletions

View file

@ -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

27
ngx/watch-bun-how.ts Normal file
View file

@ -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());