feat(site): index url #736,#310

This commit is contained in:
Jacky 2025-04-05 12:50:46 +00:00
parent 94fcbf6362
commit c013c468a0
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
20 changed files with 559 additions and 355 deletions

View file

@ -37,12 +37,12 @@ func Enable(name string) (err error) {
output := nginx.TestConf()
if nginx.GetLogLevel(output) > nginx.Warn {
_ = os.Remove(enabledConfigFilePath)
return fmt.Errorf(output)
return fmt.Errorf("%s", output)
}
output = nginx.Reload()
if nginx.GetLogLevel(output) > nginx.Warn {
return fmt.Errorf(output)
return fmt.Errorf("%s", output)
}
go syncEnable(name)