Compare commits

...

2 commits

Author SHA1 Message Date
1e512af67c add paper-k256 2025-05-02 15:34:36 +00:00
a77a1a29a7 add cocoon pds nginx config
cocoon is out of repo atm
2025-05-02 15:06:00 +00:00
4 changed files with 46 additions and 0 deletions

View file

@ -9,3 +9,5 @@ deno run ./charlotte-partners.ts > out/charlotte-partners.conf
deno run ./charlotte-partners-labeler.ts > out/charlotte-partners-labeler.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 ./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 ./hang-out-while-she-watches.ts > out/hang-out-while-she-watches.conf
deno run ./cocoon.ts > out/cocoon.conf
deno run ./paper-k256-umm-gay.ts > out/paper-k256-umm-gay.conf

27
ngx/cocoon.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 cocoon.bun.how",
...ngx.listen(),
...ngx.letsEncrypt("cocoon.bun.how"),
],
ngx("location /", [
"client_max_body_size 1G",
"proxy_pass http://127.0.0.12:8080",
"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());

16
ngx/paper-k256-umm-gay.ts Normal file
View file

@ -0,0 +1,16 @@
import ngx from "jsr:@char/ngx@0.1";
export const domain = "paper-k256.umm.gay"
export const config = ngx("server", [
[
`server_name ${domain}`,
...ngx.listen(),
...ngx.letsEncrypt(domain),
],
ngx("location /", [
`root /srv/www/${domain}/web`,
]),
]);
if (import.meta.main) console.log(config.build());

1
www/paper-k256.umm.gay/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/web