add labeler.charlotte.partners service
This commit is contained in:
parent
0a8deb0153
commit
480726cf71
3 changed files with 39 additions and 0 deletions
|
@ -6,3 +6,4 @@ deno run ./pds.ts > out/pds.conf
|
||||||
deno run ./char-bun-how.ts > out/char-bun-how.conf
|
deno run ./char-bun-how.ts > out/char-bun-how.conf
|
||||||
deno run ./pds-testing.ts > out/pds-testing.conf
|
deno run ./pds-testing.ts > out/pds-testing.conf
|
||||||
deno run ./charlotte-partners.ts > out/charlotte-partners.conf
|
deno run ./charlotte-partners.ts > out/charlotte-partners.conf
|
||||||
|
deno run ./charlotte-partners-labeler.ts > out/charlotte-partners-labeler.conf
|
||||||
|
|
27
ngx/charlotte-partners-labeler.ts
Normal file
27
ngx/charlotte-partners-labeler.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 labeler.charlotte.partners",
|
||||||
|
...ngx.listen(),
|
||||||
|
...ngx.letsEncrypt("labeler.charlotte.partners"),
|
||||||
|
],
|
||||||
|
ngx("location /", [
|
||||||
|
"client_max_body_size 1G",
|
||||||
|
"proxy_pass http://127.0.0.1:14831",
|
||||||
|
"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());
|
|
@ -14,6 +14,12 @@
|
||||||
"type": "Multikey",
|
"type": "Multikey",
|
||||||
"controller": "did:web:charlotte.partners",
|
"controller": "did:web:charlotte.partners",
|
||||||
"publicKeyMultibase": "zQ3shRnBKbRb8ECLZHs7YuJ8JPHkXiQPSDVwCsciXKrzDYdae"
|
"publicKeyMultibase": "zQ3shRnBKbRb8ECLZHs7YuJ8JPHkXiQPSDVwCsciXKrzDYdae"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "did:web:charlotte.partners#atproto_label",
|
||||||
|
"type": "Multikey",
|
||||||
|
"controller": "did:web:charlotte.partners",
|
||||||
|
"publicKeyMultibase": "zQ3shpoZGFs1e2HdYHAY58JKE2vtrD53vVLFj9dAbnTSgAQQG"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"service": [
|
"service": [
|
||||||
|
@ -21,6 +27,11 @@
|
||||||
"id": "#atproto_pds",
|
"id": "#atproto_pds",
|
||||||
"type": "AtprotoPersonalDataServer",
|
"type": "AtprotoPersonalDataServer",
|
||||||
"serviceEndpoint": "https://pds.bun.how"
|
"serviceEndpoint": "https://pds.bun.how"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "#atproto_labeler",
|
||||||
|
"type": "AtprotoLabeler",
|
||||||
|
"serviceEndpoint": "https://labeler.charlotte.partners"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue