From 3da9438b6355dec3dbd999989b872248abe1cb2c Mon Sep 17 00:00:00 2001 From: SDS <52386626+StefanDanielSchwarz@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:54:46 +0200 Subject: [PATCH 1/2] Remote-Link.cmd to set up a cloudflare tunnel Run this script to download the latest cloudflared.exe from Cloudflare (if it's not available in the same folder as the script already) and run it to set up a secure HTTPS tunnel to your SillyTavern instance instead of using insecure unencrypted HTTP. --- Remote-Link.cmd | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Remote-Link.cmd diff --git a/Remote-Link.cmd b/Remote-Link.cmd new file mode 100644 index 000000000..44b3926a8 --- /dev/null +++ b/Remote-Link.cmd @@ -0,0 +1,3 @@ +@echo off +if not exist cloudflared.exe curl -Lo cloudflared.exe https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe +cloudflared.exe tunnel --url localhost:8000 From 2f944519481b0359b137df695987016f7478bc52 Mon Sep 17 00:00:00 2001 From: SDS <52386626+StefanDanielSchwarz@users.noreply.github.com> Date: Thu, 3 Aug 2023 17:36:35 +0200 Subject: [PATCH 2/2] Update Remote-Link.cmd Added warning about the potential dangers of having a tunnel open --- Remote-Link.cmd | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Remote-Link.cmd b/Remote-Link.cmd index 44b3926a8..f44f232f2 100644 --- a/Remote-Link.cmd +++ b/Remote-Link.cmd @@ -1,3 +1,18 @@ @echo off +echo ======================================================================================================================== +echo WARNING: Cloudflare Tunnel! +echo ======================================================================================================================== +echo This script downloads and runs the latest cloudflared.exe from Cloudflare to set up an HTTPS tunnel to your SillyTavern! +echo Using the randomly generated temporary tunnel URL, anyone can access your SillyTavern over the Internet while the tunnel +echo is active. Keep the URL safe and secure your SillyTavern installation by setting a username and password in config.conf! +echo. +echo See https://docs.sillytavern.app/usage/remoteconnections/ for more details about how to secure your SillyTavern install. +echo. +echo By continuing you confirm that you're aware of the potential dangers of having a tunnel open and take all responsibility +echo to properly use and secure it! +echo. +echo To abort, press Ctrl+C or close this window now! +echo. +pause if not exist cloudflared.exe curl -Lo cloudflared.exe https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe cloudflared.exe tunnel --url localhost:8000