SillyTavern icon indicating copy to clipboard operation
SillyTavern copied to clipboard

After installing on my personal VPS, I encountered this prompt. My website can be accessed, but it cannot be opened using my server's IP + port 8000. What could be the reason for this?

Open xkdopod opened this issue 11 months ago • 7 comments

After installing on my personal VPS, I encountered this prompt. My website can be accessed, but it cannot be opened using my server's IP + port 8000. What could be the reason for this?

xkdopod avatar Mar 23 '24 12:03 xkdopod

After installing on my personal VPS, I encountered this prompt. My website can be accessed, but it cannot be opened using my server's IP + port 8000. What could be the reason for this? 7780

xkdopod avatar Mar 23 '24 12:03 xkdopod

@xkdopod That means you should open config.yaml and enable listen: true. After that, you'll either need to enable whitelist, or login/pass authentication.

Teashrock avatar Mar 23 '24 13:03 Teashrock

Brother, I changed the configuration file. I set it to true, but it still doesn't work. I also replaced the whitelist "127.0.0.1" with my IP, but it still doesn't work. Can anyone help? 47

xkdopod avatar Mar 23 '24 15:03 xkdopod

Maybe you can change "WhitelistMode" to "true" and "whitelist" to "0.0.0.0", and then set "BasicauthMode" to "true" as well, and you can set the username and password to ensure security.

QingyeSC avatar Mar 23 '24 20:03 QingyeSC

these are the values i have set in mine that made it work:

# -- NETWORK CONFIGURATION --
# Listen for incoming connections
listen: true
# Server port
port: 8000
# Toggle whitelist mode
whitelistMode: true
# Whitelist of allowed IP addresses
whitelist:
  - 127.0.0.1
  - 192.168.0.0/22
  - 192.168.4.0/24
# Toggle basic authentication for endpoints
basicAuthMode: false

This allows me to connect to it from either my local net (192.186.0.0/22) or my vpn net (192.168.4.0/24), or localhost (127.0.0.1) since i run this on a linux server and then connect to it

cmdrscotty avatar Mar 24 '24 12:03 cmdrscotty

Please check your firewall setting. Even if your client IP is not in the whitelist, you should see a webpage like this:

Forbidden: Connection attempt from YOUR IP ADDR. If you are attempting to connect, please add your IP address in whitelist or disable whitelist mode in config.yaml in root of SillyTavern folder.

Or you can just make sillytavern listen to loaclhost with basicAuth and reverse proxy it using caddy/nginx with HTTPS. this should be a common pratice.

sirius422 avatar Mar 29 '24 05:03 sirius422