Replies: 1 comment 4 replies
-
I also had an issue with this, almost exactly the same, I was using pangolin as a reverse proxy. You have the proxy_pass as 52345 and the ports for the server set as 52345, but the UPTIME_APP_API_BASE_URL: "https://checkmate.domain.com/api/v1" does not have 52345. That may be your issue, I was running into blocked:csp issues. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry if this is the wrong place to post it. But it's been a few days of trying and I'm at my wits end!
I get a: GET https://checkmate.domain.com/api/v1/auth/users/superadmin [HTTP/1.1 502 Bad Gateway 276ms] when attempting to register.
I assume this is the API isn't reachable.
My portainer stack and nginx config are posted below. Hoping for some direction please.
services:
client:
image: ghcr.io/bluewave-labs/checkmate-client:latest
restart: always
environment:
UPTIME_APP_API_BASE_URL: "https://checkmate.domain.com/api/v1"
UPTIME_APP_CLIENT_HOST: "https://checkmate.domain.com"
ports:
- "5005:80"
- "5443:443"
depends_on:
- server
server:
image: ghcr.io/bluewave-labs/checkmate-backend:latest
restart: always
ports:
- "52345:52345"
depends_on:
- mongodb
environment:
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db
- CLIENT_HOST=https://checkmate.domain.com
- JWT_SECRET=a97be3d562d89df2cf611ccfbcd19814fd078252fe716698694f0bbd613fda34
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
mongodb:
image: ghcr.io/bluewave-labs/checkmate-mongo:latest
restart: always
volumes:
- ./mongo/data:/data/db
command: ["mongod", "--quiet", "--bind_ip_all"]
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')", "--quiet"]
interval: 5s
timeout: 30s
start_period: 0s
start_interval: 1s
retries: 30
My NGINX CONFIG:
server {
if ($host = checkmate.domain.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name checkmate.domain.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
proxy_send_timeout 330s;
proxy_read_timeout 330s;
server_name checkmate.domain.com;
ssl_certificate /etc/letsencrypt/live/checkmate.domain.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/checkmate.domain.com/privkey.pem; # managed by Certbot
}
Beta Was this translation helpful? Give feedback.
All reactions