mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Making changes for cloudflare
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -14,8 +14,8 @@ try{
|
||||
requireHeader: ['origin', 'x-requested-with'],
|
||||
removeHeaders: ['cookie', 'cookie2'],
|
||||
httpsOptions: credentials
|
||||
}).listen(8080, function() {
|
||||
console.log('Running CORS Anywhere on :' + 8080);
|
||||
}).listen(2053, function() {
|
||||
console.log('Running CORS Anywhere on :' + 2053);
|
||||
});
|
||||
}
|
||||
catch(err){
|
||||
@@ -37,7 +37,7 @@ var crypto = require('crypto');
|
||||
|
||||
var emojiStrip = require('emoji-strip');
|
||||
|
||||
var port = 3000;
|
||||
var port = 2083;
|
||||
var lists = {};
|
||||
var unique_ids = [];
|
||||
|
||||
|
||||
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -43,7 +43,7 @@ var connection_options = {
|
||||
'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.emit('list', chan.toLowerCase());
|
||||
});
|
||||
|
||||
@@ -154,7 +154,7 @@ var Youtube = {
|
||||
};
|
||||
|
||||
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';
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user