'use strict';

/*
 * This is the default configuration for iTranswarp.js.
 * 
 * DO NOT change it. Instead, make a copy and name to "config_override.js",
 * then edit the settings.
 */

module.exports = {
    // server domain name:
    domain: 'www.example.com',
    // the theme used, default to 'default':
    theme: 'default',
    session: {
        cookie: 'isession',
        // sync comments to SNS?
        syncComments: true,
        // used to generate secure session cookie, can be set to any random string:
        salt: 'iTranswarp.js',
        // use https for management:
        httpsForManagement: false
    },
    db: {
        // host or ip address of mysql, e.g. '192.168.1.123':
        host: 'localhost',
        // port of mysql, default to 3306:
        port: 3306,
        // user to login to mysql, change to your mysql user:
        user: 'www',
        // password to login to mysql, change to your mysql password:
        password: 'www',
        // database used in mysql, default to 'itranswarp':
        database: 'itranswarp',
        // timeout before initial a connection to mysql, default to 3 seconds:
        connectTimeout: 3000,
        // maximum concurrent db connections:
        connectionLimit: 20
    },
    cdn: {
        static_prefix: ''
    },
    cache: {
        prefix: 'it^',
        // host or ip address of memcached:
        host: '127.0.0.1',
        // port of memcached, default to 11211:
        port: 11211,
        // connection timeout:
        timeout: 1000,
        // retries when failed:
        retries: 3
    },
    queue: {
        // host or ip address of redis:
        host: '127.0.0.1',
        // port of redis, default to 6379:
        port: 6379
    },
    search: {
        provider: 'site_search',
        configs: {
            // default set to google search:
            search_url: 'https://www.google.com/search?ie=utf-8&q=%s',
            // other search engines:
            // baidu: 'http://www.baidu.com/s?ie=utf-8&wd=%s'
            // bing: 'http://www.bing.com/search?ie=utf-8&q=%s'
            domain: 'www.example.com'
        }
    },
    // oauth2 providers that allow sign in from other oauth2 providers:
    oauth2: {
        // e.g. facebook oauth2 configuration:
        // 'faceook': {
        //     'app_key': 'your-app-id',
        //     'app_secret': 'your-app-secret',
        //     'redirect_uri': 'http://your-redirect-uri/config/in/facebook'
        // }
    },
    // END:
    END: 'END'
};

@@ -121,15 +121,21 @@
 and 
+re
 name to
+:%0A *
  %22co
@@ -143,54 +143,177 @@
 fig_
-override.js%22,%0A * then edit the settings
+development.js%22 which is enabled in development environment.%0A * %22config_production.js%22 which is enabled in production environment.%0A * Then edit settings you needed
 .%0A */%0A
-%0A
 modu
@@ -499,69 +499,8 @@
 n',%0A
-        // sync comments to SNS?%0A        syncComments: true,%0A
     
@@ -1306,24 +1306,45 @@
 : 20%0A    %7D,%0A
+    // NOT USED NOW:%0A
     cdn: %7B%0A 
@@ -1411,9 +1411,9 @@
  'it
-%5E
+/
 ',%0A 
@@ -1580,16 +1580,37 @@
  timeout
+, default to 1 second
 :%0A      
@@ -1680,24 +1680,45 @@
 s: 3%0A    %7D,%0A
+    // NOT USED NOW:%0A
     queue: %7B
@@ -2387,16 +2387,16 @@
 ration:%0A
-
         
@@ -2407,24 +2407,107 @@
 faceook': %7B%0A
+        //     'icon': 'facebook',%0A        //     'name': 'Sign in with Facebook',%0A
         //  

update default config