config.js 1.9 KB
// # config

var path = require('path');


exports = module.exports = function () {

    return {
        defaults: {
            server: {
                env: 'development'
            }
        },
        test: {
            cache: true,
            url: 'http://localhost:5999',
            restful: {
                url: 'http://172.21.0.8:20000/',
                ossUrl: 'http://172.21.0.8:10001/v1/',
                version: '/v1'
            },
            server: {
                host: '0.0.0.0',
                env: 'production',
                port: 5999,
                cluster: false
            },
            redis: {
                prefix: 'igloo_production_test_develop',
                host: '172.21.0.8',
                port: 38888,
                pass: 'Q*Kr4?#Rg!'
            },
            logger: {
                'console': true,
                requests: true,
                mongo: false,
                file: {
                    filename: '/opt/work/hro/frontend/hro-develop/igloo.log',
                    timestamp: true
                }
            }
        },
        development: {
            cache: true,
            url: 'http://localhost:3000',
            server: {
                env: 'development',
                port: 3000,
            },
            redis: {
                prefix: 'igloo-development',
                host: '127.0.0.1',
                port: 6379,
                pass: '',
            }
        },
        production: {
            cache: false,
            url: 'http://localhost:6868',
            restful: {
                url: 'http://192.168.2.72:20000/',
                ossUrl: 'http://192.168.2.72:20000/',
                version: '/v1'
            },
            server: {
                host: '0.0.0.0',
                env: 'production',
                port: 6868,
                cluster: false
            }
        }
    };
};

exports['@singleton'] = true;