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 TLS certificates from disk via API #4005

Closed
hholst80 opened this issue Feb 1, 2021 · 2 comments
Closed

Reload TLS certificates from disk via API #4005

hholst80 opened this issue Feb 1, 2021 · 2 comments
Labels
feature ⚙️ New feature or request
Milestone

Comments

@hholst80
Copy link

hholst80 commented Feb 1, 2021

Feature request to v2.3

I did not find a way to via the API do a caddy reload [...] is it possible? Just reload to rehash the TLS certificates.

@francislavoie
Copy link
Member

francislavoie commented Feb 1, 2021

You can GET /config/ to grab the current config, then send it to POST /load with the Cache-Control: must-revalidate header. That's effectively the same thing.

@mholt
Copy link
Member

mholt commented Feb 1, 2021

Yep, that's the way: just force a reload of the config. I suppose we could add a --force flag to the caddy reload command?

@mholt mholt added the feature ⚙️ New feature or request label Feb 2, 2021
@mholt mholt modified the milestones: v2.3.1, v2.4.0 Feb 2, 2021
@mholt mholt closed this as completed in 2772ede Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ⚙️ New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants