TwiN / gatus

⛑ Automated developer-oriented status page
https://gatus.io
Apache License 2.0
6.12k stars 408 forks source link

Included logo does not work #818

Closed michael5941 closed 2 months ago

michael5941 commented 2 months ago

Describe the bug

I want to set up my customized logo, but it can not work when Iconfig ui.logo in yaml. I got error [api.ErrorHandler] Cannot GET /img/google.svg. How can I fix this issue? Thank you! This is my configuration file

docker-compose.yaml

version: '3.9'

  gatus:
    image: twinproduction/gatus:latest
    volumes:
      - ./config:/config
      - ./uidata/demo.svg:/uidata/demo.svg
    ports: 
      - 8080:8080

config.yaml

ui:
  header: Example Company
  logo: "/uidata/google.svg"
  link: https://example.org

What do you see?

Can not get customized logo when setting information in config.yaml. image

What do you expect to see?

Can get customized logo on the health check page.

List the steps that must be taken to reproduce this issue

No response

Version

v2.52.4

Additional information

No response

TwiN commented 2 months ago

The version doesn't seem right. That said, have you considered just hosting the image somewhere public instead?

michael5941 commented 2 months ago

@TwiN Thank you for your reminder! I hosted my image version at v5.11.0, but still get same error icon.

TwiN commented 2 months ago

How about the second point I mentioned? Gatus doesn't serve content in the volume you added (./uidata/demo.svg:/uidata/demo.svg) right now.

michael5941 commented 2 months ago

I am using nginx to expose my images, and this method is effective. Thank you! I hope that in the future, the volume mount feature can be added to allow modifying the logo. :)