mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-21 12:35:23 -04:00
config not honoring WS port #11
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 @roachadam on GitHub (Dec 4, 2021).
Description:
Changing the port for the websocket in .env file does not honor the new port.
Changing WS port to 9001 does not start the websocket on port 9001, but instead 9000.
Specs:
Centos 7 64bit
Pics:

Revolt attempts to request WS at correct addr/por
@Zomatree commented on GitHub (Dec 5, 2021):
Changing the environment variables will change the websocket host, make sure its using the most up to date version of the env file.
@roachadam commented on GitHub (Dec 5, 2021):
It should have been. I edited the env back to port 9000 and it is working fine. Changing back to 9001 after restarting docker produces the same error.
@insertish commented on GitHub (Jan 5, 2022):
You have to change the port in
docker-compose.ymlas well. (be sure to also rundocker-compose up -dafter doing this)The
.envfile is solely used by the API server to tell the client where it needs to connect.