HasCustomCert returns true if the project uses a custom certificate
()
| 521 | |
| 522 | // HasCustomCert returns true if the project uses a custom certificate |
| 523 | func (app *DdevApp) HasCustomCert() bool { |
| 524 | customCertsPath := app.GetConfigPath("custom_certs") |
| 525 | certFileName := fmt.Sprintf("%s.crt", app.Name) |
| 526 | return fileutil.FileExists(filepath.Join(customCertsPath, certFileName)) |
| 527 | } |
| 528 | |
| 529 | // CanUseHTTPOnly returns true if the project can be accessed via http only |
| 530 | func (app *DdevApp) CanUseHTTPOnly() bool { |
no test coverage detected