mirror of
https://github.com/aljazceru/nostr-relay-registry.git
synced 2025-12-17 14:14:29 +01:00
feat: add relays over Tor
This commit is contained in:
committed by
fiatjaf
parent
31f3fb6b93
commit
d34fc616e7
38
main.js
38
main.js
@@ -1,24 +1,32 @@
|
|||||||
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: [
|
relays: isUsingTor() ? torRelays : 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"
|
|
||||||
],
|
|
||||||
status: {}
|
status: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user