gatus icon indicating copy to clipboard operation
gatus copied to clipboard

panic: invalid tls config: open fullchain.pem: no such file or directory

Open roughnecks opened this issue 1 year ago • 2 comments

Describe the bug

Whenever I start the docker container I get the title's error, whatever I type in config.yaml, full or relative paths

What do you see?

No response

What do you expect to see?

No response

List the steps that must be taken to reproduce this issue

  1. mkdir -p /home/user/docker/etc
  2. cd /home/user/docker/etc
  3. nano config.yaml
web:
  port: 23456
  tls:
    certificate-file: "fullchain.pem"
    private-key-file: "privkey.pem"
  1. cp /etc/letsencrypt/live/domain/fullchain.pem .
  2. cp /etc/letsencrypt/live/domain/privkey.pem .
  3. sudo docker run -p 12345:12345 --mount type=bind,source="$(pwd)"/config.yaml,target=/config/config.yaml --name gatus twinproduction/gatus

Version

latest docker

Additional information

No response

roughnecks avatar Jan 19 '24 14:01 roughnecks

It may not be related, but I see what your configuration specifies web.port as 23456, while your docker command binds the port 12345.

TwiN avatar Jan 19 '24 23:01 TwiN

Not related I'm afraid, I altered the ports on purpose, without thinking.

roughnecks avatar Jan 20 '24 05:01 roughnecks