more settings for api

beta.r3js.org
Theunis J. Botha 2016-11-11 18:29:57 +01:00
parent 6593ef81ea
commit cb35ec1f71
2 changed files with 30 additions and 1 deletions

View File

@ -6,6 +6,8 @@ server {
root /usr/share/gamewheel/3d-racing;
index index.html;
location / {
add_header Access-Control-Allow-Origin $http_origin;
autoindex on;

View File

@ -71,7 +71,34 @@ var secure = {
},
api: {
port: 3107,
debugPort: 3207
debugPort: 3207,
liveReloadPort: 3407,
mongodb: {
host: 'mongodb://127.0.0.1',
db: 'apidev',
port: 27017,
shardPort: 27018,
options: {
db: {
native_parser: true
},
server: {
poolSize: 5,
keepAlive: 120
},
user: '',
pass: '',
autoIndex: false
}
},
mailer: {
host: 'localhost',
port: 9025,
secure: false,
debug: true,
ignoreTLS: true
},
sessionKey: 'iJswK29klj20Jos02mJK8ud9239j23'
},
api_runtime: {
port: 3108,