From 8df7c00a147873f5c0ac81dabc993ed25981c544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 16 Oct 2024 12:42:03 +0200 Subject: [PATCH] Add relay icon --- templates/default/strfry.conf.erb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/templates/default/strfry.conf.erb b/templates/default/strfry.conf.erb index f45a571..86904ec 100644 --- a/templates/default/strfry.conf.erb +++ b/templates/default/strfry.conf.erb @@ -48,18 +48,22 @@ relay { # HTTP header that contains the client's real IP, before reverse proxying (ie x-real-ip) (MUST be all lower-case) realIpHeader = "<%= @config[:real_ip_header] %>" + # NIP-11 info { - # NIP-11: Name of this server. Short/descriptive (< 30 characters) + # Name of this server. Short/descriptive (< 30 characters) name = "<%= @config[:info][:name] || "strfry default" %>" - # NIP-11: Detailed information about relay, free-form + # Detailed information about relay, free-form description = "<%= @config[:info][:description] || "This is a strfry instance." %>" - # NIP-11: Administrative nostr pubkey, for contact purposes + # Administrative nostr pubkey, for contact purposes pubkey = "<%= @config[:info][:pubkey] || "" %>" - # NIP-11: Alternative administrative contact (email, website, etc) + # Alternative administrative contact (email, website, etc) contact = "<%= @config[:info][:contact] || "" %>" + + # URL pointing to an image to be used as an icon for the relay + icon = "<%= @config[:info][:icon] || "" %>" } # Maximum accepted incoming websocket frame size (should be larger than max event) (restart required) @@ -95,7 +99,7 @@ relay { logging { # Dump all incoming messages - dumpInAll = false + dumpInAll = true # Dump all incoming EVENT messages dumpInEvents = false