devforth / hothost

Lightweight and minimalistic open-source Servers and HTTP monitor
MIT License
168 stars 15 forks source link

Docker and api on port 8007 #18

Open infodavide opened 1 year ago

infodavide commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Here are the files.

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