diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..936632e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "watch-party-2"] + path = watch-party-2 + url = https://git.lavender.software/char/watch-party-2.git diff --git a/ngx/build.sh b/ngx/build.sh index 76b7839..157c0c5 100755 --- a/ngx/build.sh +++ b/ngx/build.sh @@ -8,3 +8,4 @@ deno run ./pds-testing.ts > out/pds-testing.conf 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 diff --git a/ngx/hang-out-while-she-watches.ts b/ngx/hang-out-while-she-watches.ts new file mode 100644 index 0000000..0927994 --- /dev/null +++ b/ngx/hang-out-while-she-watches.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 hang.out.while.she.watches", + ...ngx.listen(), + ...ngx.letsEncrypt("hang.out.while.she.watches"), + ], + 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()); diff --git a/watch-party-2 b/watch-party-2 new file mode 160000 index 0000000..1363139 --- /dev/null +++ b/watch-party-2 @@ -0,0 +1 @@ +Subproject commit 1363139bc048bdf02a174c7979121dfae7b7ad4e