Update config.
This commit is contained in:
parent
3887b2a834
commit
b3714c90c8
@ -29,13 +29,30 @@ services:
|
|||||||
webui: 'http://127.0.0.1:9473/webui'
|
webui: 'http://127.0.0.1:9473/webui'
|
||||||
|
|
||||||
signal:
|
signal:
|
||||||
server: 'http://127.0.0.1:4000'
|
server: 'ws://127.0.0.1:4000'
|
||||||
api: 'http://127.0.0.1:4000'
|
api: 'http://127.0.0.1:4000'
|
||||||
|
|
||||||
ipfs:
|
ipfs:
|
||||||
server: '/ip4/127.0.0.1/tcp/5001'
|
server: 'https://127.0.0.1:5001'
|
||||||
gateway: '/ip4//127.0.0.1:8888/ipfs/'
|
gateway: 'http://127.0.0.1:8888'
|
||||||
webui: 'http://127.0.0.1:5001/webui'
|
|
||||||
|
|
||||||
wellknown:
|
wellknown:
|
||||||
endpoint: 'http://127.0.0.1:9000/.well-known/dxos'
|
endpoint: 'http://127.0.0.1:9000/.well-known/dxos'
|
||||||
|
|
||||||
|
routes:
|
||||||
|
app:
|
||||||
|
server: '/app'
|
||||||
|
|
||||||
|
wns:
|
||||||
|
server: '/dxos/wns/api'
|
||||||
|
webui: '/dxos/wns/console'
|
||||||
|
|
||||||
|
signal:
|
||||||
|
api: '/dxos/signal'
|
||||||
|
|
||||||
|
ipfs:
|
||||||
|
server: '/dxos/ipfs/api'
|
||||||
|
gateway: '/dxos/ipfs/gateway'
|
||||||
|
|
||||||
|
wellknown:
|
||||||
|
endpoint: '/.well-known/dxos'
|
||||||
|
@ -8,12 +8,12 @@ import { InMemoryCache } from 'apollo-cache-inmemory';
|
|||||||
|
|
||||||
import { createResolvers } from './resolvers';
|
import { createResolvers } from './resolvers';
|
||||||
|
|
||||||
const defaultServer = `${window.location.protocol}//${window.location.hostname}`;
|
const defaultServer = `${window.location.origin}/${window.location.pathname}`
|
||||||
|
|
||||||
export const graphqlApi = config => {
|
export const graphqlApi = config => {
|
||||||
const { api: { server = defaultServer, port = 80, path = '/graphql' } } = config;
|
const { api: { server = defaultServer, path = '/api/graphql' } } = config;
|
||||||
|
|
||||||
return `${server}:${port}${path}`;
|
return `${server}${path}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"build": {
|
"build": {
|
||||||
"name": "@dxos/console-app",
|
"name": "@dxos/console-app",
|
||||||
"buildDate": "2020-06-11T06:21:53.153Z",
|
"buildDate": "2020-06-11T15:58:26.701Z",
|
||||||
"version": "1.0.0-beta.0"
|
"version": "1.0.0-beta.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user