Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 10 additions & 25 deletions lib/js/server/server.config.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,14 @@
*/
?>
module.exports = {
host : '<?php echo $nodeSocket->host; ?>',
port : parseInt('<?php echo $nodeSocket->port; ?>'),
origin : '<?php echo $nodeSocket->getOrigin(); ?>',
allowedServers : <?php echo json_encode($nodeSocket->getAllowedServersAddresses()); ?>,
dbOptions : <?php echo json_encode($nodeSocket->getDb()->getConnectionOptions()); ?>,
checkClientOrigin : <?php echo (int) $nodeSocket->checkClientOrigin; ?>,
sessionVarName : '<?php echo $nodeSocket->sessionVarName; ?>',
socketLogFile : '<?php echo $nodeSocket->socketLogFile; ?>'
host : '<?php echo $nodeSocket->host;?>',
port : parseInt('<?php echo $nodeSocket->port;?>'),
origin : '<?php echo $nodeSocket->getOrigin(); ?>',
allowedServers : <?php echo json_encode($nodeSocket->getAllowedServersAddresses()); ?>,
dbOptions : <?php echo json_encode($nodeSocket->getDb()->getConnectionOptions()); ?>,
checkClientOrigin : <?php echo (int)$nodeSocket->checkClientOrigin; ?>,
sessionVarName : '<?php echo $nodeSocket->sessionVarName; ?>',
ssl: <?php echo (int)$nodeSocket->ssl; ?>,
sslKey: '<?php echo $nodeSocket->sslKey; ?>',
sslCert: '<?php echo $nodeSocket->sslCert; ?>'
};

<?php
/*

module.exports = {
host : 'yii.handbid.lan',
port : parseInt('3002'),
origin : '*:*',
allowedServers : ["yii.handbid.local","yii.handbid.lan","handbid.local","dev.handbid.com","10.0.0.180","192.168.246.128","localhost","127.0.0.1"],
dbOptions : {"driver":"dummy","config":[]},
checkClientOrigin : 0,
sessionVarName : 'PHPSESSID',
socketLogFile : '/var/log/yii/node-socket.log'
};

*/