add zplc
This commit is contained in:
parent
e815ecf732
commit
8b34da0c40
4 changed files with 26 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -4,3 +4,6 @@
|
|||
[submodule "jetstream/src"]
|
||||
path = jetstream/src
|
||||
url = https://github.com/bluesky-social/jetstream.git
|
||||
[submodule "zplc"]
|
||||
path = zplc
|
||||
url = https://github.com/char/zplc-server.git
|
||||
|
|
|
@ -4,3 +4,4 @@ mkdir out 2>/dev/null || true
|
|||
deno run ./default.ts > out/default.conf
|
||||
deno run ./relay.ts > out/relay.conf
|
||||
deno run ./jetstream.ts > out/jetstream.conf
|
||||
deno run ./zplc.ts > out/zplc.conf
|
||||
|
|
21
ngx/zplc.ts
Normal file
21
ngx/zplc.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import ngx from "jsr:@char/ngx@0.2";
|
||||
|
||||
export const config = ngx("", [
|
||||
ngx("server", [
|
||||
[
|
||||
ngx.serverName("zplc.cerulea.blue"),
|
||||
ngx.listen(),
|
||||
"listen 80",
|
||||
"listen [::]:80",
|
||||
ngx.letsEncrypt("zplc.cerulea.blue"),
|
||||
],
|
||||
ngx("location /", [
|
||||
"proxy_pass http://127.0.0.1:2485",
|
||||
"proxy_http_version 1.1",
|
||||
"proxy_set_header Host $host",
|
||||
"proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for",
|
||||
]),
|
||||
]),
|
||||
]);
|
||||
|
||||
if (import.meta.main) console.log(config.build());
|
1
zplc
Submodule
1
zplc
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 311dc168a827922de00cd4d4c559591da2eb4641
|
Loading…
Reference in a new issue