session destroy fixed

This commit is contained in:
C
2022-12-29 16:16:19 +05:00
parent 61b35128f4
commit b11e2536cb
13 changed files with 146 additions and 64 deletions
+21
View File
@@ -0,0 +1,21 @@
var nginx_start = 115
var start_port = 47000
for (let i = 0; i < 20; i++) {
// console.log(` location /${nginx_start}${start_port+i} {`)
// console.log(` return 301 http://192.168.1.${nginx_start}:${start_port+i}/;`)
// console.log(` }`)
console.log(` location /${nginx_start}${start_port+i}/ {`)
console.log(` proxy_pass http://192.168.1.${nginx_start}:${start_port+i}/;`)
console.log(' proxy_set_header Upgrade $http_upgrade;')
console.log(` proxy_set_header Connection 'upgrade';`)
console.log(' }')
}
// location = /ombi {
// return 301 https://FQDN/ombi/;
// }
// setTimeout(() => {
// res.end('Hello World!');
// }, 10000);
@@ -0,0 +1,3 @@
let host = '5.141.82.116'
let port = '3002'
console.log(require('crypto').createHash('md5').update(`${host}${port}`).digest('hex'))