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 and api on port 8007 #18

Open
infodavide opened this issue Mar 5, 2023 · 3 comments
Open

Docker and api on port 8007 #18

infodavide opened this issue Mar 5, 2023 · 3 comments

Comments

@infodavide
Copy link

Hi,

I have configured the application using Docker according to your installation guide.
When I start the container and browse the application, it seems to be frozen.
I see in development tools of the browser that it tries to request the following URL :
http://localhost:8007/api/v2/getMonitoringData
But initially, port 8007 was not declared in your guide.
I added the mapping from 8007 to 80 without success as I got a 401 error code or a connection refused for this request.
Do you have a solution to get it work ?

@ivictbor
Copy link
Contributor

ivictbor commented Mar 5, 2023

Hey, thanks, yes seams like HotHost somehow thinks that it is in loval development mode. @IhorStorozhok why could it be? Can you try to recreate on your side?

@infodavide could you please send a docker inspect output of your container? Also probably it is issue in proxy vonfiguration, would be nice to see proxy setrings if you have proxy in front of hothost, or Cloudflare settings

@ivictbor
Copy link
Contributor

ivictbor commented Mar 5, 2023

AFAICS in code we see

const port = env.WEB_PORT || 8007;

It is not obvious byt env.WEB_PORT here comes from environment variable HOTHOST_WEB_PORT

So just set it to port which you want to use as defined in readme. If you are proxing via cloudflare from our guide, set HOTHOST_WEB_PORT=80. If you want to proxy it, then set any port which then will be used in proxy routing rule

@infodavide
Copy link
Author

Here are the files.

inspect.json.txt
docker-compose.yaml.txt

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

2 participants