mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-28 14:45:49 +08:00
First, raw renewal implementation. Pretty basic :D
This commit is contained in:
@ -16,6 +16,11 @@ var storage = Storage(filepath.Join(app.DataFolder(), "letsencrypt"))
|
||||
// forming file paths derived from it.
|
||||
type Storage string
|
||||
|
||||
// RenewTimerFile returns the path to the file used for renewal timing.
|
||||
func (s Storage) RenewTimerFile() string {
|
||||
return filepath.Join(string(s), "lastrenew")
|
||||
}
|
||||
|
||||
// Sites gets the directory that stores site certificate and keys.
|
||||
func (s Storage) Sites() string {
|
||||
return filepath.Join(string(s), "sites")
|
||||
|
Reference in New Issue
Block a user