feat: update default relay set to all 5 relays
Added auth.nostr1.com and wotr.relatr.xyz back as default relays. All 5 relays are now the default for all new users: - wss://auth.nostr1.com (auth) - wss://wotr.relatr.xyz (web of trust) - wss://relay.ditto.pub (general) - wss://goskatespots.nostr1.com (community - toggleable) - wss://purplepag.es (profiles - read only) Updated across: App.tsx, NostrProvider.tsx, NostrSync.tsx, TestApp.tsx Updated Settings page Default Relays info cards to show all 5 with descriptions. Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
parent
5526265aea
commit
c2b7a29d07
5 changed files with 59 additions and 8 deletions
|
|
@ -38,6 +38,8 @@ const defaultConfig: AppConfig = {
|
|||
theme: "dark",
|
||||
relayMetadata: {
|
||||
relays: [
|
||||
{ url: 'wss://auth.nostr1.com', read: true, write: true },
|
||||
{ url: 'wss://wotr.relatr.xyz', read: true, write: true },
|
||||
{ url: 'wss://relay.ditto.pub', read: true, write: true },
|
||||
{ url: 'wss://goskatespots.nostr1.com', read: true, write: true },
|
||||
{ url: 'wss://purplepag.es', read: true, write: false }, // Profile aggregator - read only
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@ interface NostrProviderProps {
|
|||
|
||||
// Default fallback relays - used if no relays are configured
|
||||
const DEFAULT_RELAYS = [
|
||||
{ url: 'wss://auth.nostr1.com', read: true, write: true },
|
||||
{ url: 'wss://wotr.relatr.xyz', read: true, write: true },
|
||||
{ url: 'wss://relay.ditto.pub', read: true, write: true },
|
||||
{ url: SKATE_RELAY, read: true, write: true },
|
||||
{ url: 'wss://purplepag.es', read: true, write: false }, // Profile aggregator
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ import { useToast } from '@/hooks/useToast';
|
|||
|
||||
// Default relays for new users
|
||||
const NEW_USER_RELAYS = [
|
||||
{ url: 'wss://auth.nostr1.com', read: true, write: true },
|
||||
{ url: 'wss://wotr.relatr.xyz', read: true, write: true },
|
||||
{ url: 'wss://relay.ditto.pub', read: true, write: true },
|
||||
{ url: 'wss://goskatespots.nostr1.com', read: true, write: true },
|
||||
{ url: 'wss://purplepag.es', read: true, write: false }, // Profile aggregator
|
||||
|
|
|
|||
|
|
@ -364,7 +364,7 @@ function RelaysTab() {
|
|||
</CardHeader>
|
||||
<CardContent className="space-y-4">
|
||||
<div className="space-y-3">
|
||||
{/* Primary Relay */}
|
||||
{/* Community Relay */}
|
||||
<div className="p-4 rounded-lg bg-blue-900/20 border border-blue-500/30">
|
||||
<div className="flex items-start gap-2 mb-2">
|
||||
<div className="text-lg">🛹</div>
|
||||
|
|
@ -374,32 +374,75 @@ function RelaysTab() {
|
|||
</div>
|
||||
</div>
|
||||
<p className="text-sm text-gray-300 leading-relaxed">
|
||||
Your dedicated skateboarding relay with custom policies for spots, events, Lab services (coaches/filmers), and shops.
|
||||
The dedicated SkateSpots community relay. Custom policies for spots, events, coaches, filmers, and shops. Toggle it on/off above.
|
||||
</p>
|
||||
<div className="mt-3 p-3 rounded bg-yellow-950/30 border border-yellow-500/30">
|
||||
<p className="text-xs text-yellow-200">
|
||||
<strong>⚠️ Important:</strong> This relay uses an allowlist for trust and spam management. Your npub must be specifically allowed to publish events. DM the relay owner to request access.
|
||||
<strong>⚠️ Allowlisted:</strong> Your npub must be approved to publish here. DM the relay owner to request access.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Profile Aggregator Relay */}
|
||||
{/* Auth relay */}
|
||||
<div className="p-4 rounded-lg bg-green-900/20 border border-green-500/30">
|
||||
<div className="flex items-start gap-2 mb-2">
|
||||
<div className="text-lg">🔐</div>
|
||||
<div className="flex-1">
|
||||
<p className="font-bold text-white">auth.nostr1.com</p>
|
||||
<p className="text-xs text-gray-400 font-mono mt-1">wss://auth.nostr1.com</p>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-sm text-gray-300 leading-relaxed">
|
||||
Authentication relay for Nostr identity verification and NIP-42 auth flows.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* WoTR relay */}
|
||||
<div className="p-4 rounded-lg bg-purple-900/20 border border-purple-500/30">
|
||||
<div className="flex items-start gap-2 mb-2">
|
||||
<div className="text-lg">🛡️</div>
|
||||
<div className="flex-1">
|
||||
<p className="font-bold text-white">purplepag.es</p>
|
||||
<p className="text-xs text-gray-400 font-mono mt-1">wss://purplepag.es</p>
|
||||
<p className="font-bold text-white">wotr.relatr.xyz</p>
|
||||
<p className="text-xs text-gray-400 font-mono mt-1">wss://wotr.relatr.xyz</p>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-sm text-gray-300 leading-relaxed">
|
||||
Profile aggregator relay that indexes Nostr profiles from across the network. Used for fast profile lookups and discovery.
|
||||
Relatr's Web of Trust relay. Powers trust scores and broader Nostr network connectivity.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Ditto relay */}
|
||||
<div className="p-4 rounded-lg bg-orange-900/20 border border-orange-500/30">
|
||||
<div className="flex items-start gap-2 mb-2">
|
||||
<div className="text-lg">🌐</div>
|
||||
<div className="flex-1">
|
||||
<p className="font-bold text-white">relay.ditto.pub</p>
|
||||
<p className="text-xs text-gray-400 font-mono mt-1">wss://relay.ditto.pub</p>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-sm text-gray-300 leading-relaxed">
|
||||
General purpose relay with broad Nostr network coverage for maximum reach.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Profile Aggregator */}
|
||||
<div className="p-4 rounded-lg bg-gray-900/20 border border-gray-500/30">
|
||||
<div className="flex items-start gap-2 mb-2">
|
||||
<div className="text-lg">👤</div>
|
||||
<div className="flex-1">
|
||||
<p className="font-bold text-white">purplepag.es</p>
|
||||
<p className="text-xs text-gray-400 font-mono mt-1">wss://purplepag.es</p>
|
||||
<span className="text-[10px] bg-gray-700 text-gray-300 px-1.5 py-0.5 rounded mt-1 inline-block">Read only</span>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-sm text-gray-300 leading-relaxed">
|
||||
Profile aggregator that indexes Nostr profiles from across the network. Used for fast profile lookups and discovery.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p className="text-gray-400 text-sm">
|
||||
Your content publishes to both relays for maximum reliability. If the primary relay rejects your event (not yet on allowlist), the backup relay ensures your content still gets published.
|
||||
Your content publishes to all write-enabled relays for maximum reliability. You can customise your relay list above using the relay manager.
|
||||
</p>
|
||||
|
||||
<div className="p-3 rounded-lg bg-green-950/30 border border-green-500/30">
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ export function TestApp({ children }: TestAppProps) {
|
|||
theme: 'dark',
|
||||
relayMetadata: {
|
||||
relays: [
|
||||
{ url: 'wss://auth.nostr1.com', read: true, write: true },
|
||||
{ url: 'wss://wotr.relatr.xyz', read: true, write: true },
|
||||
{ url: 'wss://relay.ditto.pub', read: true, write: true },
|
||||
{ url: 'wss://goskatespots.nostr1.com', read: true, write: true },
|
||||
{ url: 'wss://purplepag.es', read: true, write: false },
|
||||
|
|
|
|||
Loading…
Reference in a new issue