Port 8000 -> 4036 in all the places
This commit is contained in:
parent
4fafce27eb
commit
0acde23c46
|
@ -3,7 +3,7 @@
|
||||||
# Edit this file to change occurences of "example.com" to your own domain.
|
# Edit this file to change occurences of "example.com" to your own domain.
|
||||||
|
|
||||||
upstream ditto {
|
upstream ditto {
|
||||||
server 127.0.0.1:8000;
|
server 127.0.0.1:4036;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream ipfs_gateway {
|
upstream ipfs_gateway {
|
||||||
|
|
|
@ -55,7 +55,7 @@ class Conf {
|
||||||
}
|
}
|
||||||
/** Origin of the Ditto server, including the protocol and port. */
|
/** Origin of the Ditto server, including the protocol and port. */
|
||||||
static get localDomain() {
|
static get localDomain() {
|
||||||
return Deno.env.get('LOCAL_DOMAIN') || 'http://localhost:8000';
|
return Deno.env.get('LOCAL_DOMAIN') || 'http://localhost:4036';
|
||||||
}
|
}
|
||||||
/** URL to an external Nostr viewer. */
|
/** URL to an external Nostr viewer. */
|
||||||
static get externalDomain() {
|
static get externalDomain() {
|
||||||
|
|
|
@ -33,15 +33,15 @@ Deno.test('query events with domain search filter', async () => {
|
||||||
await eventsDB.event(event1);
|
await eventsDB.event(event1);
|
||||||
|
|
||||||
assertEquals(await eventsDB.query([{}]), [event1]);
|
assertEquals(await eventsDB.query([{}]), [event1]);
|
||||||
assertEquals(await eventsDB.query([{ search: 'domain:localhost:8000' }]), []);
|
assertEquals(await eventsDB.query([{ search: 'domain:localhost:4036' }]), []);
|
||||||
assertEquals(await eventsDB.query([{ search: '' }]), [event1]);
|
assertEquals(await eventsDB.query([{ search: '' }]), [event1]);
|
||||||
|
|
||||||
await kysely
|
await kysely
|
||||||
.insertInto('pubkey_domains')
|
.insertInto('pubkey_domains')
|
||||||
.values({ pubkey: event1.pubkey, domain: 'localhost:8000', last_updated_at: event1.created_at })
|
.values({ pubkey: event1.pubkey, domain: 'localhost:4036', last_updated_at: event1.created_at })
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
assertEquals(await eventsDB.query([{ kinds: [1], search: 'domain:localhost:8000' }]), [event1]);
|
assertEquals(await eventsDB.query([{ kinds: [1], search: 'domain:localhost:4036' }]), [event1]);
|
||||||
assertEquals(await eventsDB.query([{ kinds: [1], search: 'domain:example.com' }]), []);
|
assertEquals(await eventsDB.query([{ kinds: [1], search: 'domain:example.com' }]), []);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue