did:web attempt
This commit is contained in:
parent
86b498278f
commit
6600be5217
3 changed files with 47 additions and 0 deletions
|
@ -3,3 +3,4 @@
|
|||
mkdir out 2>/dev/null || true
|
||||
deno run ./default.ts > out/default.conf
|
||||
deno run ./pds.ts > out/pds.conf
|
||||
deno run ./char-bun-how.ts > out/char-bun-how.conf
|
||||
|
|
20
ngx/char-bun-how.ts
Normal file
20
ngx/char-bun-how.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
import ngx from "jsr:@char/ngx@0.1";
|
||||
|
||||
export const domain = "char.bun.how"
|
||||
|
||||
export const config = ngx("server", [
|
||||
[
|
||||
`server_name ${domain}`,
|
||||
...ngx.listen(),
|
||||
...ngx.letsEncrypt(domain),
|
||||
],
|
||||
ngx("location /", [
|
||||
"add_header Access-Control-Allow-Origin *",
|
||||
"if_modified_since off",
|
||||
"expires off",
|
||||
"etag off",
|
||||
`root /srv/www/${domain}`,
|
||||
]),
|
||||
]);
|
||||
|
||||
if (import.meta.main) console.log(config.build());
|
26
www/char.bun.how/.well-known/did.json
Normal file
26
www/char.bun.how/.well-known/did.json
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/did/v1",
|
||||
"https://w3id.org/security/multikey/v1",
|
||||
"https://w3id.org/security/suites/secp256k1-2019/v1"
|
||||
],
|
||||
"id": "did:web:char.bun.how",
|
||||
"alsoKnownAs": [
|
||||
"at://char.bun.how"
|
||||
],
|
||||
"verificationMethod": [
|
||||
{
|
||||
"id": "did:web:char.bun.how#atproto",
|
||||
"type": "Multikey",
|
||||
"controller": "did:web:char.bun.how",
|
||||
"publicKeyMultibase": "zQ3shV6xQxreuVc7tjUL5aJK28YJv8FB24CNJX6fqknL7XgLW"
|
||||
}
|
||||
],
|
||||
"service": [
|
||||
{
|
||||
"id": "#atproto_pds",
|
||||
"type": "AtprotoPersonalDataServer",
|
||||
"serviceEndpoint": "https://pds.bun.how"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue