mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Replace localtunnel with cloudflare
This commit is contained in:
@@ -308,17 +308,18 @@
|
||||
" !npm install\n",
|
||||
" !npm install -g localtunnel\n",
|
||||
" !npm install -g forever\n",
|
||||
" !pip install flask-cloudflared\n",
|
||||
"ii.addTask(\"Install Tavern Dependencies\", installTavernDependencies)\n",
|
||||
"ii.run()\n",
|
||||
"\n",
|
||||
"%env colaburl=$url\n",
|
||||
"%env SILLY_TAVERN_PORT=5001\n",
|
||||
"print(\"KoboldAI LINK:\", url, '###Extensions API LINK###', globals.extras_url, \"###SillyTavern LINK###\", sep=\"\\n\")\n",
|
||||
"p = subprocess.Popen([\"lt\", \"--port\", \"5001\"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n",
|
||||
"print(p.stdout.readline().decode().strip())\n",
|
||||
"from flask_cloudflared import start_cloudflared\n",
|
||||
"!sed -i 's/listen = true/listen = false/g' config.conf\n",
|
||||
"!touch stdout.log stderr.log\n",
|
||||
"!forever start -o stdout.log -e stderr.log server.js\n",
|
||||
"print(\"KoboldAI LINK:\", url, '###Extensions API LINK###', globals.extras_url, \"###SillyTavern LINK###\", sep=\"\\n\")\n",
|
||||
"start_cloudflared(5001, 7000)\n",
|
||||
"!tail -f stdout.log stderr.log"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user