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

Reload after ssl cert changed #348

Merged
merged 2 commits into from
Jul 18, 2023
Merged

Conversation

jcox10
Copy link
Contributor

@jcox10 jcox10 commented Jul 10, 2023

Proposed changes

Add handler to restart/reload nginx when SSL certs or keys change. Closes #318. When updating a SSL cert or keys, nginx needs to be reloaded before it will start serving the new cert. Otherwise the old (and potentially expired) cert will be used.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have added Molecule tests that prove my fix is effective or that my feature works
  • I have checked that any relevant Molecule tests pass after adding my changes
  • I have updated any relevant documentation (defaults/main/*.yml, README.md and CHANGELOG.md)

Add handler to restart/reload nginx when SSL certs or keys change
@jcox10 jcox10 requested a review from alessfg as a code owner July 10, 2023 16:10
@jcox10
Copy link
Contributor Author

jcox10 commented Jul 10, 2023

I don't think there are any molecule tests that can be added for this.

@alessfg alessfg added the enhancement Enhance an existing feature label Jul 11, 2023
@alessfg
Copy link
Collaborator

alessfg commented Jul 11, 2023

Thanks for the PR! Can you update the Changelog?

@alessfg alessfg added this to the 0.7.1 milestone Jul 11, 2023
@jcox10 jcox10 changed the title Update upload-config.yml Reload after ssl cert changed Jul 12, 2023
@alessfg alessfg merged commit c29f2da into nginxinc:main Jul 18, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance an existing feature
Development

Successfully merging this pull request may close these issues.

Role should restart/reload Nginx when SSL certificates change
2 participants