Making changes for cloudflare

This commit is contained in:
Kasper Rynning-Tønnesen
2015-09-09 12:16:03 +02:00
parent 5ee78d79fc
commit eec5cfd531
5 changed files with 7 additions and 7 deletions

View File

@@ -1 +1 @@
ssh -p 1911 root@zoff.no '/var/www/scripts/getnew.sh' ssh -p 1911 root@178.62.251.20 '/var/www/scripts/getnew.sh'

View File

@@ -14,8 +14,8 @@ try{
requireHeader: ['origin', 'x-requested-with'], requireHeader: ['origin', 'x-requested-with'],
removeHeaders: ['cookie', 'cookie2'], removeHeaders: ['cookie', 'cookie2'],
httpsOptions: credentials httpsOptions: credentials
}).listen(8080, function() { }).listen(2053, function() {
console.log('Running CORS Anywhere on :' + 8080); console.log('Running CORS Anywhere on :' + 2053);
}); });
} }
catch(err){ catch(err){
@@ -37,7 +37,7 @@ var crypto = require('crypto');
var emojiStrip = require('emoji-strip'); var emojiStrip = require('emoji-strip');
var port = 3000; var port = 2083;
var lists = {}; var lists = {};
var unique_ids = []; var unique_ids = [];

File diff suppressed because one or more lines are too long

View File

@@ -43,7 +43,7 @@ var connection_options = {
'sync disconnect on unload':true 'sync disconnect on unload':true
}; };
var socket = io.connect('//'+window.location.hostname+':3000', connection_options); var socket = io.connect('https://'+window.location.hostname+':2083', connection_options);
socket.on("get_list", function(){ socket.on("get_list", function(){
socket.emit('list', chan.toLowerCase()); socket.emit('list', chan.toLowerCase());
}); });

View File

@@ -154,7 +154,7 @@ var Youtube = {
}; };
img.crossOrigin = 'Anonymous'; img.crossOrigin = 'Anonymous';
img.src = '//zoff.no:8080/http://img.youtube.com/vi/'+id+'/mqdefault.jpg'; img.src = '//zoff.no:2053/http://img.youtube.com/vi/'+id+'/mqdefault.jpg';
} }
}, },