Closed paulo-roger closed 3 months ago
Hello, your docker logs shows strange http requests (wp, ssh, …) but none on local.js.
Can you clear your browser cache (this app is a pwa with strong cache mechanism) and retry?
Check that browser is requesting fresh version of local.js file on network tab.
it is weird because I had purged cloudflare cache and was always reloading with CTRL + F5, sometimes manually cleaning browser cookies, and even tried from a different browser I hadn't previously used.
So I did a sudo docker volume prune -f
and docker system prune
and sudo docker image prune -a -f
to start fresh. now it works.
It seems to be only using the env vars from the first run. even though the local.js inside the container still changes.
So in conclusion, now it is working as expected, with a new fresh container.
by the way, last no the least, thank you so much for you fast and prompt response willing to help me. you are awesome!
Sorry, I think it is some problem with cloudflare actually. serving the app in the same domain loads the old local.js.
Even when I purge the cache in cloudflare.
I'm not an expert in cloudflare stuff, probably caching system, but if your problem is solved, it is good for me 😉
yeah it is all good :) ty so much!
If someone ever have this kind of problem add this cache rule to cloudflare:
Describe the bug
When I access the app it doesnt use the correct wss address.
this is my local.js in the docker container:
and this is what is being served to the browser:
I have no idea how to fix it.
Steps to reproduce
~/xmpp/xmpp-web$ cat docker-compose.yml version: "3.4" services: xmpp-web: image: nioc/xmpp-web:latest ports:
- XMPP_WS="https://xmpp.harpia.red/ws"
Expected behavior
to serve the app with correct ws address
Relevant log
local.js configuration
No response
XMPP-web version
latest
Installation
Docker image
XMPP server(s)
ejabberd
Browser(s)
Firefox
Device(s)
desktop
Other information
No response