Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

no config.local #1

Open
douglashipocreme opened this issue Jul 18, 2016 · 3 comments
Open

no config.local #1

douglashipocreme opened this issue Jul 18, 2016 · 3 comments

Comments

@douglashipocreme
Copy link

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

@SashaSkywalker
Copy link
Member

SashaSkywalker commented Jan 9, 2017

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

@RoxyBoxxy
Copy link

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`

@disgustingwall
Copy link

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants