add watch-party-2

This commit is contained in:
Charlotte Som 2025-02-11 09:02:43 +00:00
parent 563f7065a7
commit a5f278ca36
4 changed files with 32 additions and 0 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "watch-party-2"]
path = watch-party-2
url = https://git.lavender.software/char/watch-party-2.git

View file

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

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

1
watch-party-2 Submodule

@ -0,0 +1 @@
Subproject commit 1363139bc048bdf02a174c7979121dfae7b7ad4e