Skip to content

Commit 245bc7d

Browse files
committed
Mention NIP-05.
1 parent 3543b7f commit 245bc7d

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- [x] CMS
1010
- [x] Personal Nostr relay
1111
- [x] Personal Blossom server
12+
- [x] [NIP-05](https://github.com/nostr-protocol/nips/blob/master/05.md) ("Nostr address") server
1213

1314
### CMS
1415

docs/api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ Servus implements the [Blossom API](https://github.com/hzrd149/blossom) and ther
2525
* PUT `/upload`
2626
* GET `/list/<pubkey>`
2727
* DELETE `/<sha256>`
28+
29+
## NIP-05 API
30+
31+
* GET `/.well-known/nostr.json` will return a JSON that contains the site's Nostr pubkey

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,9 +1151,13 @@ async fn main() -> Result<(), std::io::Error> {
11511151
let bind_to = format!("{addr}:{port}");
11521152
println!("####################################");
11531153
for domain in domains {
1154+
println!("++++++");
11541155
println!("*** Your site: http://localhost:{port}/?{domain} ***");
1156+
println!("*** Your Nostr identity (NIP-05): http://localhost:{port}/.well-known/nostr.json?{domain} ***");
1157+
println!("++++++");
11551158
}
1156-
println!("*** The admin interface: http://localhost:{port}/.admin/ ***");
1159+
println!("*** Admin interface: http://localhost:{port}/.admin/ ***");
1160+
println!("++++++");
11571161
println!("####################################");
11581162
app.listen(bind_to).await?;
11591163
};

0 commit comments

Comments
 (0)