add cocoon pds nginx config
cocoon is out of repo atm
This commit is contained in:
parent
d9df9c0e54
commit
a77a1a29a7
2 changed files with 28 additions and 0 deletions
|
|
@ -9,3 +9,4 @@ 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
|
||||||
|
|
|
||||||
27
ngx/cocoon.ts
Normal file
27
ngx/cocoon.ts
Normal 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());
|
||||||
Loading…
Reference in a new issue