more settings for api
parent
6593ef81ea
commit
cb35ec1f71
|
@ -6,6 +6,8 @@ server {
|
||||||
|
|
||||||
root /usr/share/gamewheel/3d-racing;
|
root /usr/share/gamewheel/3d-racing;
|
||||||
|
|
||||||
|
index index.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
add_header Access-Control-Allow-Origin $http_origin;
|
add_header Access-Control-Allow-Origin $http_origin;
|
||||||
autoindex on;
|
autoindex on;
|
||||||
|
|
29
secure.js
29
secure.js
|
@ -71,7 +71,34 @@ var secure = {
|
||||||
},
|
},
|
||||||
api: {
|
api: {
|
||||||
port: 3107,
|
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: {
|
api_runtime: {
|
||||||
port: 3108,
|
port: 3108,
|
||||||
|
|
Loading…
Reference in New Issue