Advertisement
Guest User

Untitled

a guest
Mar 16th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     var path = require('path');
  3.  
  4.     var Config = {};
  5.  
  6.     Config.isMasterServer = true;
  7.  
  8.     Config.host = "localhost";
  9.     Config.port = 8080;
  10.     Config.urlPrefix = '/';
  11.  
  12.     Config.dbCollectionPrefix = '';
  13.     Config.databaseUrl = "mongodb://10.0.3.158/spikaenterprise";
  14.  
  15.     Config.supportUserId = "56ec126ca4718ef424641692";
  16.  
  17.     Config.redis = {
  18.             host: "10.0.3.158",
  19.             port: 6379
  20.     }
  21.  
  22.     Config.AESPassword = "cl0v3r-S+uD10-h4X0r1";
  23.  
  24.     Config.publicPath = path.resolve(__dirname, "../../..", "public");
  25.     Config.uploadPath = path.resolve(__dirname, "../../..", "public/uploads");
  26.  
  27.     Config.socketNameSpace = '/spikaenterprise';
  28.     Config.defaultAvatar = "/img/noname.png";
  29.     Config.defaultAvatarGroup = "/img/noname-group.png";
  30.  
  31.     Config.hashSalt = "8zgqvU6LaziThJI1uz3PevYd";
  32.  
  33.     Config.username = "admin";
  34.     Config.password = "1234";
  35.  
  36.     Config.apnsCertificates = {
  37.  
  38.         dev : {
  39.             key : '/srv/ServerMessenger/push_certs/pushkey_dev.pem',
  40.             cert : '/srv/ServerMessenger/push_certs/pushcert.pem'
  41.         },
  42.         adhoc : {
  43.             key : '/srv/ServerMessenger/push_certs/pushkey.pem',
  44.             cert :  '/srv/ServerMessenger/push_certs/pushcert.pem'
  45.         },
  46.         store : {
  47.             key : null,
  48.             cert : null
  49.         },
  50.     voip: {
  51.        key: '/srv/ServerMessenger/push_certs/voip_key.pem',
  52.        cert: '/srv/ServerMessenger/push_certs/voip_cert.pem',
  53.        production: true
  54.     }
  55.     };
  56.  
  57.     Config.gcmAPIKey = "AIzaSyA79SboSonLp--G7Cu155vfhEqJ9SlMYiA";
  58.     Config.fcmServerKey = "AAAAy29Tcxw:APA91bFUDC7fawLD7FL9EPsliLXmVdZF8PrvMZ_8Hs3h3lSu96YyB-ncGjKuimAqsq02QebTvbQD7e1JQSk5jPq5onz9SMuBLmdzm2dPqPKjDgpPoXZ7yviJ-5sb8UFqWwGDqLewohth";
  59.  
  60.     Config.webRTCConfig = {
  61.         "isDev": true,
  62.         "socketNameSpace": "signaling",
  63.         "server": {
  64.             "port": Config.port,
  65.             "secure": false,
  66.             "key": null,
  67.             "cert": null,
  68.             "password": null
  69.         },
  70.         "peerConnectionConfig"  : {
  71.             "iceTransports" : "relay"
  72.         },
  73.         "rooms": {
  74.             "maxClients": 0
  75.         },
  76.  
  77.         /*
  78.         "stunservers": [
  79.         {
  80.             "url": "stun:turnstun.spika.chat:3478"
  81.         }
  82.         ],
  83.         "turnservers": [
  84.             {
  85.                 "urls": ["turn:turnstun.spika.chat"],
  86.                 "secret": "turnserversharedsecret",
  87.                 "expiry": 86400,
  88.                 "user": 'spikaturn',
  89.                 "password": 'dka98n'
  90.             }
  91.         ]
  92.         */
  93.  
  94.         "stunservers": [
  95.         {
  96.             "url": "stun:numb.viagenie.ca:3478"
  97.         }
  98.         ],
  99.         "turnservers": [
  100.             {
  101.                 "urls": ["turn:numb.viagenie.ca"],
  102.                 "secret": "turnserversharedsecret",
  103.                 "expiry": 86400,
  104.                 "user": 'ken.yasue@clover-studio.com',
  105.                 "password": 'yumiko'
  106.             }
  107.         ]
  108.  
  109.     }
  110.  
  111.     Config.email = {
  112.         service: "",
  113.         username: "",
  114.         password: "",
  115.         from: "no-reply@clover-studio.com"
  116.     };
  117.  
  118.     Config.smtp = {
  119.         host:'',
  120.         port:25,
  121.         username:'',
  122.         password:''
  123.     }
  124.  
  125.     Config.protocol = "http://";
  126.  
  127.     module["exports"] = Config;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement