chernika-server icon indicating copy to clipboard operation
chernika-server copied to clipboard

no config.local

Open douglashipocreme opened this issue 9 years ago • 3 comments

i'd like to get config.local file to run server side of app

douglashipocreme avatar Jul 18 '16 15:07 douglashipocreme

Seems like we lost our config.local file

file was like this:

module.exports = {
    apiPort: 3000,
    ...
}

I guess it's still possible to recover file by using this search link https://github.com/akveo/chernika-server/search?q=config&type=Code&utf8=%E2%9C%93

SashaSkywalker avatar Jan 09 '17 09:01 SashaSkywalker

Did his get sorted as i can not find it ether

Tryed to make one but it throws errors `module.exports = { apiPort: 3000, } emailSettings = { from: Rec Port: 445, host: 127.0.0.1 ssl: true,

} crypto = { algorithm: sha2, password: 3db7502d5d, }

dbSettings ={ host: 127.0.0.1, port: 5555, }

ionic = { appId:0000000000000, apiSecret:0000000000000, }

geoNearLimit: 5`

RoxyBoxxy avatar Apr 19 '17 21:04 RoxyBoxxy

@krynomore and I worked on this problem. I never tested anything on my machine, but he said that the following config file works (with all content removed but datatypes remaining the same, out of respect for the privacy of @krynomore):

module.exports={
	"apiPort": 0,
	"vkSettings": {
		'appId' : 0,
		'appSecret' : '',
		'language' : ''
	},
	"chatPageSize": 1,
	"emailSettings":{
		"from": "",
		"email": "",
		"port": 0,
		"host": "",
		"ssl": false
	},
	"crypto":{
		"algorithm": "",
		"password": ""
	},
	"photoCropFactor": 0,
	"dbSettings":{
		"host": "",
		"port": ""
	},
	"ionic":{
		"appId": ""
	},
	"withoutPolicy": false,
	"geoNearLimit": 0
}

I believe that I found default values for the "vkSettings" element somewhere on a npmjs.com package after searching for "vkApi". I found https://www.npmjs.com/package/vkapi again today, but it doesn't mention the "language" element and it seems like other content on the page is different from what I remember. That page also references a github page, and https://github.com/57uff3r/nodejs-vksdk/blob/master/sdk.js#L25 seems to have a full list of options, as it is the default configuration object. It does not seem to have the correct datatype for every option, however.

disgustingwall avatar May 02 '17 22:05 disgustingwall