Giter VIP home page Giter VIP logo

Comments (6)

issmirnov avatar issmirnov commented on May 18, 2024 1

Thank you! Confirmed working.

Note to other passing users: reminder that unless you have a redirect setup on a root domain, you probably want to set https://your.domain.com/ping as the healthcheck host, not just https://your.domain.com

from docker-gphotos-sync.

JakeWharton avatar JakeWharton commented on May 18, 2024

It used to be URL but then it felt weird to just append /start and hope it would work. Since this isn't common, I would prefer to add HEALTHCHECK_HOST where you can specify a host and port. Is that enough for you?

I was actually talking to someone else about this last week...

from docker-gphotos-sync.

karan avatar karan commented on May 18, 2024

Yeah that would work as an override (though I personally find the whole URL as more flexible).

from docker-gphotos-sync.

JakeWharton avatar JakeWharton commented on May 18, 2024

We could allow specifying two full URLs then, at the expense of you having to specify the full /start URL and the regular one. This would also make it agnostic to the provider of the health check since presumably there are other services which do similar things, although you have no way of controlling the body or headers of the requests.

from docker-gphotos-sync.

karan avatar karan commented on May 18, 2024

That'd be fine although a bit too verbose. A couple of other options:

  • Keep 1 URL, assume that URL the URL is a HC URL and follows their spec. /start and all.
  • Keep 1 URL, and a IS_HEALTHCHECK_API bool. That being true would make it so we can use the /start API.

from docker-gphotos-sync.

issmirnov avatar issmirnov commented on May 18, 2024

+1 to HEALTHCHECK_HOST. I was about to open a PR when I saw this issue.

from docker-gphotos-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.