feat: Add restart runtime for config php (#10150)

This commit is contained in:
CityFun 2025-08-26 17:13:59 +08:00 committed by GitHub
parent 6b62b84157
commit ab0e0f3f43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -994,6 +994,9 @@ func (r *RuntimeService) UpdateFPMConfig(req request.FPMConfig) error {
if err := cfg.SaveTo(runtime.GetFPMPath()); err != nil {
return err
}
if _, err := compose.Restart(runtime.GetComposePath()); err != nil {
return err
}
return nil
}

View file

@ -181,8 +181,7 @@ func getCaDirURL(accountType, customCaURL string) string {
var caDirURL string
switch accountType {
case "letsencrypt":
//caDirURL = "https://acme-v02.api.letsencrypt.org/directory"
caDirURL = "https://acme-staging-v02.api.letsencrypt.org/directory"
caDirURL = "https://acme-v02.api.letsencrypt.org/directory"
case "zerossl":
caDirURL = "https://acme.zerossl.com/v2/DV90"
case "buypass":