mirror of
https://github.com/aljazceru/nostr-relay-registry.git
synced 2025-12-17 22:24:24 +01:00
put the onion relays together with the others.
This commit is contained in:
40
main.js
40
main.js
@@ -1,32 +1,22 @@
|
|||||||
import {createApp, h} from 'vue'
|
import {createApp, h} from 'vue'
|
||||||
import {relayConnect} from 'nostr-tools/relay'
|
import {relayConnect} from 'nostr-tools/relay'
|
||||||
|
|
||||||
const isUsingTor = () => window.location.hostname.endsWith('.onion')
|
|
||||||
|
|
||||||
const clearnetRelays = [
|
|
||||||
'wss://nostr-pub.wellorder.net',
|
|
||||||
'wss://relayer.fiatjaf.com',
|
|
||||||
'wss://nostr.rocks',
|
|
||||||
'wss://rsslay.fiatjaf.com',
|
|
||||||
'wss://nostr-relay.herokuapp.com',
|
|
||||||
"wss://freedom-relay.herokuapp.com/ws",
|
|
||||||
"wss://nodestr-relay.dolu.dev/ws",
|
|
||||||
"wss://nostrrr.bublina.eu.org",
|
|
||||||
"wss://nostr-relay.freeberty.net",
|
|
||||||
"wss://nostr.bitcoiner.social",
|
|
||||||
"wss://nostr-relay.wlvs.space",
|
|
||||||
"wss://nostr.onsats.org",
|
|
||||||
"wss://nostr-relay.untethr.me"
|
|
||||||
]
|
|
||||||
|
|
||||||
const torRelays = [
|
|
||||||
'ws://jgqaglhautb4k6e6i2g34jakxiemqp6z4wynlirltuukgkft2xuglmqd.onion'
|
|
||||||
]
|
|
||||||
|
|
||||||
const App = {
|
const App = {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
relays: isUsingTor() ? torRelays : clearnetRelays,
|
relays: [
|
||||||
|
'wss://nostr-pub.wellorder.net',
|
||||||
|
'wss://relayer.fiatjaf.com',
|
||||||
|
'wss://nostr.rocks',
|
||||||
|
'wss://rsslay.fiatjaf.com',
|
||||||
|
'wss://freedom-relay.herokuapp.com/ws',
|
||||||
|
'wss://nostr-relay.freeberty.net',
|
||||||
|
'wss://nostr.bitcoiner.social',
|
||||||
|
'wss://nostr-relay.wlvs.space',
|
||||||
|
'wss://nostr.onsats.org',
|
||||||
|
'wss://nostr-relay.untethr.me',
|
||||||
|
'ws://jgqaglhautb4k6e6i2g34jakxiemqp6z4wynlirltuukgkft2xuglmqd.onion'
|
||||||
|
],
|
||||||
status: {}
|
status: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -70,7 +60,9 @@ const App = {
|
|||||||
clearTimeout(willUnsub)
|
clearTimeout(willUnsub)
|
||||||
},
|
},
|
||||||
filter: {
|
filter: {
|
||||||
ids: ['41ce9bc50da77dda5542f020370ecc2b056d8f2be93c1cedf1bf57efcab095b0']
|
ids: [
|
||||||
|
'41ce9bc50da77dda5542f020370ecc2b056d8f2be93c1cedf1bf57efcab095b0'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'nostr-registry'
|
'nostr-registry'
|
||||||
|
|||||||
Reference in New Issue
Block a user