revoltchat / self-hosted

Deploy Revolt using Docker.
854 stars 108 forks source link

config not honoring WS port #22

Closed roachadam closed 2 years ago

roachadam commented 2 years ago

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 image

Zomatree commented 2 years ago

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 2 years ago

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 2 years ago

You have to change the port in docker-compose.yml as well. (be sure to also run docker-compose up -d after doing this) The .env file is solely used by the API server to tell the client where it needs to connect.