sardines-shoal
Version:
A built-in service provider for sardines.js
99 lines (98 loc) • 2.78 kB
JSON
{
"host": {
"name": "mba-robin"
},
"providers": [{
"name": "sardines-service-provider-http",
"code": {
"locationType": "npm"
},
"providerSettings": {
"host": "0.0.0.0",
"port": 8080,
"protocol": "http",
"root": "/",
"bodyParser": {
"formLimit": "10m",
"jsonLimit": "10m",
"textLimit": "10m"
},
"safeGuard": true,
"cors": {
"credentials": true
},
"syslog": true,
"public": {
"protocol": "http",
"host": "localhost",
"root": "/",
"port": 8080,
"driver": "sardines-service-driver-http"
}
},
"applicationSettings": [{
"application": "sardines",
"commonSettings": {
"root": "/"
},
"serviceSettings": [{
"module": "/repository",
"name": "signIn",
"settings": {
"method": "post"
}
}, {
"module": "/repository",
"name": "signUp",
"settings": {
"method": "post"
}
}, {
"module": "/repository",
"name": "signOut",
"settings": {
"arguments": [{
"name": "token",
"position": "body"
}],
"method": "post"
}
}]
}]
}],
"applications": [{
"name": "sardines",
"code": {
"locationType": "file",
"location": "./lib"
},
"version": "*",
"init": [{
"service": {
"module": "/repository",
"name": "setup"
},
"arguments": [{
"db": {
"type": "postgres",
"settings": {
"host": "localhost",
"port": 5432,
"database": "sardines_test",
"schema": "shoal",
"user": "sardines",
"password": "Sardines2019"
}
},
"owner": {
"name": "robin",
"password": "Startup@2013"
},
"shoalUser": {
"name": "sardines-shoal",
"password": "Sardines@2019"
}
}]
}]
}]
}