Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to make the config.js work?

22 views
Skip to first unread message

onion

unread,
May 11, 2025, 2:30:54 AMMay 11
to Tinode General
I am running tinode using docker

docker run -p 127.0.0.1:6060:6060 -d --name tinode-srv -v ./config:/etc/config/ --env EXT_CONFIG=/etc/config/working.config  --network tinode-net tinode/tinode-mysql:latest

All works fine.

I am changing api-key and salt, while I changed the api_key_salt in working.config, it worked, but there is actually no config.js in /opt/tinode/static, while I copied one into it, and changed API_KEY in it, and restart the container, it doesn't work, the webapp still can't connect with the server, and the server's log said

W2025/05/11 06:28:29 invalid apikey signature
E2025/05/11 06:28:29 ws: Missing, invalid or expired API key

What should I do to make config.js work?

Gene

unread,
May 11, 2025, 2:41:15 AMMay 11
to Tinode General
Replace string 'AQEAAAABAAD_rAp4DJh05a1HAwFT3A6K' with your API key in index.dev.js and index.prod.js.

onion

unread,
May 11, 2025, 9:46:43 AMMay 11
to Tinode General
Thank you, it works😀
Reply all
Reply to author
Forward
0 new messages