Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker image doesn't work with ports other than 80 #24

Closed
iwishiwasaneagle opened this issue Mar 20, 2023 · 2 comments
Closed

docker image doesn't work with ports other than 80 #24

iwishiwasaneagle opened this issue Mar 20, 2023 · 2 comments
Assignees

Comments

@iwishiwasaneagle
Copy link

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

@yuvalsteuer
Copy link
Contributor

Thanks for sharing, We'll fix it :)

@Roey7
Copy link
Contributor

Roey7 commented Mar 20, 2023

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;

@Roey7 Roey7 closed this as completed Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants