GerevAI/gerev

docker image doesn't work with ports other than 80

iwishiwasaneagle opened this issue · 2 comments

I have other containers running, notably a heimdell landing page which takes precedence. I tried running docker run --rm -p 9898:80 -v ~/.gerev/storage:/opt/storage gerev/gerev and whilst this worked with showing the webpage, it did not allow me to add data sources. Switching from -p 9898:80 to -p 80:80 solved this issue. From the looks of it, it seems to be a CORS issue.

image

Thanks for sharing, We'll fix it :)

Roey7 commented

Resolved.
old: let port = (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') ? 8000 : 80
new: let port = (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') ? 8000 : window.location.port;