mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-18 09:17:12 +00:00
Add NIP-11 icon setting
This commit is contained in:
@ -62,6 +62,7 @@ void RelayServer::runWebsocket(ThreadPool<MsgWebsocket>::Thread &thr) {
|
|||||||
if (cfg().relay__info__description.size()) nip11["description"] = cfg().relay__info__description;
|
if (cfg().relay__info__description.size()) nip11["description"] = cfg().relay__info__description;
|
||||||
if (cfg().relay__info__contact.size()) nip11["contact"] = cfg().relay__info__contact;
|
if (cfg().relay__info__contact.size()) nip11["contact"] = cfg().relay__info__contact;
|
||||||
if (cfg().relay__info__pubkey.size()) nip11["pubkey"] = cfg().relay__info__pubkey;
|
if (cfg().relay__info__pubkey.size()) nip11["pubkey"] = cfg().relay__info__pubkey;
|
||||||
|
if (cfg().relay__info__icon.size()) nip11["icon"] = cfg().relay__info__icon;
|
||||||
|
|
||||||
rendered = preGenerateHttpResponse("application/json", tao::json::to_string(nip11));
|
rendered = preGenerateHttpResponse("application/json", tao::json::to_string(nip11));
|
||||||
ver = cfg().version();
|
ver = cfg().version();
|
||||||
|
@ -27,6 +27,9 @@ config:
|
|||||||
- name: relay__info__contact
|
- name: relay__info__contact
|
||||||
desc: "NIP-11: Alternative administrative contact (email, website, etc)"
|
desc: "NIP-11: Alternative administrative contact (email, website, etc)"
|
||||||
default: ""
|
default: ""
|
||||||
|
- name: relay__info__icon
|
||||||
|
desc: "NIP-11: URL pointing to an image to be used as an icon for the relay"
|
||||||
|
default: ""
|
||||||
|
|
||||||
- name: relay__maxWebsocketPayloadSize
|
- name: relay__maxWebsocketPayloadSize
|
||||||
desc: "Maximum accepted incoming websocket frame size (should be larger than max event)"
|
desc: "Maximum accepted incoming websocket frame size (should be larger than max event)"
|
||||||
|
@ -64,6 +64,9 @@ relay {
|
|||||||
|
|
||||||
# NIP-11: Alternative administrative contact (email, website, etc)
|
# NIP-11: Alternative administrative contact (email, website, etc)
|
||||||
contact = ""
|
contact = ""
|
||||||
|
|
||||||
|
# NIP-11: URL pointing to an image to be used as an icon for the relay
|
||||||
|
icon = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
# Maximum accepted incoming websocket frame size (should be larger than max event) (restart required)
|
# Maximum accepted incoming websocket frame size (should be larger than max event) (restart required)
|
||||||
|
Reference in New Issue
Block a user