| 1 | @echo off |
| 2 | echo ======================================================================================================================== |
| 3 | echo WARNING: Cloudflare Tunnel! |
| 4 | echo ======================================================================================================================== |
| 5 | echo This script downloads and runs the latest cloudflared.exe from Cloudflare to set up an HTTPS tunnel to your SillyTavern! |
| 6 | echo Using the randomly generated temporary tunnel URL, anyone can access your SillyTavern over the Internet while the tunnel |
| 7 | echo is active. Keep the URL safe and secure your SillyTavern installation by setting a username and password in config.yaml! |
| 8 | echo. |
| 9 | echo See https://docs.sillytavern.app/usage/remoteconnections/ for more details about how to secure your SillyTavern install. |
| 10 | echo. |
| 11 | echo By continuing you confirm that you're aware of the potential dangers of having a tunnel open and take all responsibility |
| 12 | echo to properly use and secure it! |
| 13 | echo. |
| 14 | echo To abort, press Ctrl+C or close this window now! |
| 15 | echo. |
| 16 | pause |
| 17 | if not exist cloudflared.exe curl -Lo cloudflared.exe https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe |
| 18 | cloudflared.exe tunnel --url localhost:8000 |