Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { AuthService } from '@gitroom/helpers/auth/auth.service';
// @ts-ignore
global.WebSocket = WebSocket;

const list = [
const defaultRelays = [
'wss://relay.primal.net',
'wss://relay.damus.io',
'wss://relay.snort.social',
Expand All @@ -23,6 +23,9 @@ const list = [
'wss://relay.primal.net',
];

const extraRelaysFromEnv = process.env.POSTIZ_NOSTR_EXTRA_RELAYS?.split(',').map((url: string) => url.trim()).filter((url: string) => url) || [];
const list = [...new Set([...defaultRelays, ...extraRelaysFromEnv])];

export class NostrProvider extends SocialAbstract implements SocialProvider {
identifier = 'nostr';
name = 'Nostr';
Expand Down