Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add support for HTTPS in healthcheck #4538

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

Caligatio
Copy link
Contributor

What type of PR is this?

  • bug

What this PR does / why we need it:

The current healthcheck is hardcoded to use "http" which causes an error - thus failing the healthcheck - if the new TLS support is used.

Which issue(s) this PR fixes:

Fixes #4537

Special notes for your reviewer:

I could have also wrapped the requests.get() in a try/except, caught the TLS error case, and retried with TLS but thought checking for the relevant environment variables was cleaner.

Testing

I substituted the proposed healthcheck.py in my TLS-enabled install and it began passing the healthcheck. I also disabled TLS support and the proposed healthcheck.py still worked.

@Kuchenpirat
Copy link
Collaborator

please prepend the title with fix:, this helps us automatically label PRs for release

@Caligatio Caligatio changed the title Add support for HTTPS in healthcheck fix: Add support for HTTPS in healthcheck Nov 11, 2024
@Caligatio
Copy link
Contributor Author

@Kuchenpirat Done!

Copy link
Collaborator

@michael-genson michael-genson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@michael-genson michael-genson merged commit ea4adfa into mealie-recipes:mealie-next Nov 11, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - New TLS support breaks Docker healthcheck
3 participants