akveo / chernika-server

Node.js backend for chernika-mobile
33 stars 33 forks source link

no config.local #1

Open douglashipocreme opened 8 years ago

douglashipocreme commented 8 years ago

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

SashaSkywalker commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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