forked from cerc-io/laconic-console
Simplify configuration and add more instructions.
This commit is contained in:
@@ -4,7 +4,7 @@ Apollo GraphQL client.
|
||||
|
||||
## Usage
|
||||
|
||||
Use the following command to run the server at: http://localhost:4000
|
||||
Use the following command to run the server at: http://localhost:9004
|
||||
|
||||
```bash
|
||||
yarn start
|
||||
@@ -30,7 +30,7 @@ To build the client and serve it directly from the server:
|
||||
yarn start
|
||||
```
|
||||
|
||||
Then open the app at: http://localhost:4000/console
|
||||
Then open the app at: http://localhost:9004/console
|
||||
|
||||
|
||||
## Production
|
||||
|
||||
@@ -22,19 +22,19 @@ system:
|
||||
services:
|
||||
app:
|
||||
prefix: '/app'
|
||||
server: 'https://xbox.local'
|
||||
server: 'https://kube.local'
|
||||
|
||||
wns:
|
||||
server: 'https://xbox.local/dxos/wns/api'
|
||||
webui: 'https://xbox.local/dxos/wns/console'
|
||||
server: 'https://kube.local/dxos/wns/api'
|
||||
webui: 'https://kube.local/dxos/wns/console'
|
||||
|
||||
signal:
|
||||
server: 'wss://xbox.local/dxos/signal'
|
||||
api: 'https://xbox.local/dxos/signal'
|
||||
server: 'wss://kube.local/dxos/signal'
|
||||
api: 'https://kube.local/dxos/signal'
|
||||
|
||||
ipfs:
|
||||
server: 'https://xbox.local/dxos/ipfs/api'
|
||||
gateway: 'https://xbox.local/dxos/ipfs/gateway'
|
||||
server: 'https://kube.local/dxos/ipfs/api'
|
||||
gateway: 'https://kube.local/dxos/ipfs/gateway'
|
||||
|
||||
wellknown:
|
||||
endpoint: 'https://xbox.local/.well-known/dxos'
|
||||
endpoint: 'https://kube.local/.well-known/dxos'
|
||||
@@ -0,0 +1,40 @@
|
||||
#
|
||||
# NODE_ENV === production
|
||||
# NOTE: Set CONFIG_FILE to swap out this config file.
|
||||
#
|
||||
|
||||
app:
|
||||
title: 'Console'
|
||||
org': 'DXOS'
|
||||
theme: 'dark'
|
||||
website: 'https://dxos.org'
|
||||
publicUrl: '/console'
|
||||
|
||||
api:
|
||||
path: '/api'
|
||||
port: 9004
|
||||
intervalLog: 5000
|
||||
pollInterval: 10000
|
||||
|
||||
system:
|
||||
debug: 'dxos:console:*'
|
||||
|
||||
services:
|
||||
app:
|
||||
prefix: '/app'
|
||||
server: 'https://demo.kube.dxos.network'
|
||||
|
||||
wns:
|
||||
server: 'https://demo.kube.dxos.network/dxos/wns/api'
|
||||
webui: 'https://demo.kube.dxos.network/dxos/wns/console'
|
||||
|
||||
signal:
|
||||
server: 'wss://demo.kube.dxos.network/dxos/signal'
|
||||
api: 'https://demo.kube.dxos.network/dxos/signal'
|
||||
|
||||
ipfs:
|
||||
server: 'https://demo.kube.dxos.network/dxos/ipfs/api'
|
||||
gateway: 'https://demo.kube.dxos.network/dxos/ipfs/gateway'
|
||||
|
||||
wellknown:
|
||||
endpoint: 'https://demo.kube.dxos.network/.well-known/dxos'
|
||||
@@ -18,7 +18,7 @@
|
||||
"dev": "VERBOSE=true webpack-dev-server --mode development --watch",
|
||||
"lint": "semistandard 'src/**/*.js'",
|
||||
"test": "jest --rootDir ./src --passWithNoTests --no-cache",
|
||||
"start": "CONFIG_FILE=./config.yml BABEL_DISABLE_CACHE=1 nodemon --exec babel-node src/server/main.js -- --verbose"
|
||||
"start": "CONFIG_FILE=${CONFIG_FILE=./config.yml} BABEL_DISABLE_CACHE=1 nodemon --exec babel-node src/server/main.js -- --verbose"
|
||||
},
|
||||
"author": "DXOS.org",
|
||||
"license": "GPL-3.0",
|
||||
|
||||
Reference in New Issue
Block a user