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

Implement TLS hot reloading #15

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Implement TLS hot reloading #15

merged 1 commit into from
Nov 28, 2023

Conversation

Angelin01
Copy link
Owner

Closes #12

  • Spawns a secondary task that reloads the RustlsConfig object
  • The RustlsConfig's content is wrapped in Arc, which means that .clone() is merely cloning the reference
  • We watch for events related to the TLS files and reload them after a 1 second debounce

@Angelin01 Angelin01 self-assigned this Nov 24, 2023
@Angelin01 Angelin01 merged commit 014469b into master Nov 28, 2023
1 check passed
@Angelin01 Angelin01 deleted the hot-reload-certs branch November 28, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto reload TLS configs
2 participants