mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-21 04:25:24 -04:00
bug: Not reading from REVOLT_EXTERNAL_WS_URL #55
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roboriaan on GitHub (Apr 18, 2024).
What happened?
Hi,
I have my external WS URL set to :
I get passed the registration process and upon login when the socket connection is made I get a console error:
It seems that the REVOLT_EXTERNAL_WS_URL variable doesn't get pulled in and still points to : ws://local.revolt.chat/ws
I couldn't find any other setting pointing to it within the configuration. I have re-cloned the repo, re-created the images and containers.
Any ideas?
Thanks
@NoahMoyer commented on GitHub (Apr 21, 2024):
Hello, I want to add that I am seeing the same issue. I have the URL where the WebSocket server is publicly accessible set in the same way as mentioned and am seeing the same exact error in the console when trying to register/log in. Almost as if the variable has not been used the way I set it.
@FunNoober commented on GitHub (Apr 21, 2024):
I was having this issue. In the readme of this project it says.
So, to actually do this follow the steps below.
Revolt.tomlfile and place it into the same folder where yourdocker-compose.ymlfile is.Revolt.tomlfile the same way your.envfile is configureddocker-compose.ymlfile, add the following lines underneath theapi:section and theevents:section(replace the spaces with indentation)
@NoahMoyer commented on GitHub (Apr 21, 2024):
@FunNoober Thank you for pointing this out, I'll give this a try.
That was it, that resolved the issue I was seeing and I am able to log in now. Thank you!
@roboriaan commented on GitHub (Apr 23, 2024):
Perfect! Thank you @FunNoober
@ImVexed commented on GitHub (Apr 26, 2024):
@FunNoober this didn't fully work for me, events wasn't reading the redis url properly from the toml and I had to manually add back the
REDIS_URI=redis://redis/environment variable@mojoaar commented on GitHub (Jun 12, 2024):
@FunNoober Thank you for the guidance.
Note to self: remember to correct ws:// to wss:/ when loading secure :P
@jennso commented on GitHub (Feb 3, 2025):
I was able to make it work, by changing ws:// to wss:// in the .toml config file, and enabling websocket support in my reverse proxy, I'm using, nginx proxy manager as proxy server.
though I'm still getting some websocket erros here and there like