-
-
Notifications
You must be signed in to change notification settings - Fork 650
Description
Hello everyone,
I'm sorry for opening an issue for this type of error again but here we are.
My core problem is that I cannot use Checkmate because there is always an error that the Client cannot reach the server.
My status quo:
I'm running my homelab on a server in my flat. To access it I'm using Pangolin as my reverse proxy, hosted on a vps in a remote datacenter. In Pangolin I created a ressource (reverse proxy entry) to route all the traffic from monitor.my-domain.com to my Checkmate instance running on 10.0.0.45:52345 in my homelab. The vps only accepts traffic on port 80 and 443. Everything else is dropped by the firewall.
When I run Checkmate with this Docker-Compose file I can access the webinterface but after clicking login or register it shows the error "Server not reachable".:
services:
server:
image: ghcr.io/bluewave-labs/checkmate-backend-mono:latest
pull_policy: always
restart: always
ports:
- 52345:52345
environment:
- UPTIME_APP_API_BASE_URL=http://10.0.0.45:52345/api/v1
- UPTIME_APP_CLIENT_HOST=https://monitor.my-domain.com
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db
- CLIENT_HOST=http://10.0.0.45
- JWT_SECRET="my_secret"
depends_on:
- mongodb
mongodb:
image: ghcr.io/bluewave-labs/checkmate-mongo:latest
restart: always
command:
- mongod
- --quiet
- --bind_ip_all
volumes:
- /mnt/Main/Docker/Checkmate/MongoDB/data:/data/db
healthcheck:
test:
- CMD
- mongosh
- --eval
- db.adminCommand('ping')
- --quiet
interval: 5s
timeout: 30s
start_period: 0s
start_interval: 1s
retries: 30
networks: {}
When I change UPTIME_APP_CLIENT_HOST=https://monitor.my-domain.com to be UPTIME_APP_CLIENT_HOST=http://10.0.0.45 and then access it through 10.0.0.45:52345 locally in my network Checkmate is working completely fine. I can register new accounts and use the software as intended.
I read every other issue or discussion about this but it is not clear to me what to do in this case. I tried several different settings of the 3 environment variables UPTIME_APP_API_BASE_URL, UPTIME_APP_CLIENT_HOST, CLIENT_HOST but none of them seemed to work.
Hopefully we can figure this out because I think a lot of users are struggeling with this issue too!
Cheers