gatus icon indicating copy to clipboard operation
gatus copied to clipboard

feat: add authenticated API to forcibly request configuration reload

Open madpah opened this issue 8 months ago • 1 comments

Summary

Further to discussions on https://github.com/TwiN/gatus/issues/393, and #1064, I'm offering this PR (as a starting point) to allow an external request to be made to POST /v1/config/reload to request configuration is reloaded.

This will allow for external systems to request configuration reload where the current file monitoring either:

  1. Does not detect file modification dates/times as expected
  2. Configuration files are removed, and thus do not trigger the current configuration modification detection logic

If there is appetite for this PR to be merged and accepted, I'll complete the below checklist @TwiN.

Checklist

  • [ ] Tested and/or added tests to validate that the changes work as intended, if applicable.
  • [ ] Updated documentation in README.md, if applicable.

madpah avatar Apr 08 '25 09:04 madpah

@TwiN - any appetite to accept this PR?

madpah avatar Apr 14 '25 15:04 madpah

I'd rather fix modification detection than expose a link like this. Thank you for contributing, though!

TwiN avatar Sep 25 '25 03:09 TwiN