Skip to content

[BUG] healthcheck fails due to redirect response (302) when using https #843

@amcusack

Description

@amcusack

Environment

Self-Hosted (Docker)

System

Debian GNU/Linux 11 (bullseye) / Docker version 20.10.5+dfsg1, build 55c4c88

Version

Dashy version 2.1.1

Describe the problem

I am running Dashy in a docker container on debian.

I specify my own ssl certificate as per instructions at https://github.com/Lissy93/dashy/blob/master/docs/management.md#passing-a-self-signed-certificate-to-dashy

dashy runs fine with https on port 443 , has correct certificate, no errors in log, able to configure & run with no problems.

the only issue is the healthcheck..

its fails due to a redirect (302) message returned - (redirection from http to https i assume)

the command used to test healthceck is:

docker exec -it dashy yarn health-check

the result is :

yarn run v1.22.15
$ node services/healthcheck
[Sat Aug 13 2022 12:10:24 GMT+0930 (GMT+09:30)] Running health check...
Status: 302
Request took 0.028 seconds
---
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Is there someway to get the healthcheck to test against https (443) instead of http (80)

my workaroud is to specify

healthcheck: 
  disable: true

in the docker-compose.yml but it would be nice to have healthcheck active.

Thanks.

Additional info

No response

Please tick the boxes

Metadata

Metadata

Assignees

Labels

🐛 Bug[ISSUE] Ticket describing something that isn't working🕸️ Duplicate[ISSUE] This issue or pull request already exists

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions