gatus
gatus copied to clipboard
feat: add authenticated API to forcibly request configuration reload
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:
- Does not detect file modification dates/times as expected
- 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.
@TwiN - any appetite to accept this PR?
I'd rather fix modification detection than expose a link like this. Thank you for contributing, though!