()
| 1349 | } |
| 1350 | |
| 1351 | func GetSystemSSL() (bool, uint) { |
| 1352 | var sslSetting model.Setting |
| 1353 | _ = global.CoreDB.Model(&model.Setting{}).Where("key = ?", "SSL").First(&sslSetting).Error |
| 1354 | if sslSetting.Value == "Enable" || sslSetting.Value == "Mux" { |
| 1355 | var sslIDSetting model.Setting |
| 1356 | _ = global.CoreDB.Model(&model.Setting{}).Where("key = ?", "SSLID").First(&sslIDSetting).Error |
| 1357 | idValue, _ := strconv.Atoi(sslIDSetting.Value) |
| 1358 | if idValue > 0 { |
| 1359 | return true, uint(idValue) |
| 1360 | } |
| 1361 | } |
| 1362 | return false, 0 |
| 1363 | } |
| 1364 | |
| 1365 | func UpdateSSLConfig(websiteSSL model.WebsiteSSL) error { |
| 1366 | websites, _ := websiteRepo.GetBy(websiteRepo.WithWebsiteSSLID(websiteSSL.ID)) |
no outgoing calls
no test coverage detected