From cb35ec1f71ae9ca904a92c28dce7d533de615052 Mon Sep 17 00:00:00 2001 From: "Theunis J. Botha" Date: Fri, 11 Nov 2016 18:29:57 +0100 Subject: [PATCH] more settings for api --- 3d-racing.conf | 2 ++ secure.js | 29 ++++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/3d-racing.conf b/3d-racing.conf index a2ad20c..90154fe 100644 --- a/3d-racing.conf +++ b/3d-racing.conf @@ -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; diff --git a/secure.js b/secure.js index b7303a8..dc697e5 100644 --- a/secure.js +++ b/secure.js @@ -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,