GetHTTPSURL returns the primary HTTPS URL for an app.
()
| 3461 | |
| 3462 | // GetHTTPSURL returns the primary HTTPS URL for an app. |
| 3463 | func (app *DdevApp) GetHTTPSURL() string { |
| 3464 | url := "" |
| 3465 | if !IsRouterDisabled(app) { |
| 3466 | url = "https://" + app.GetHostname() |
| 3467 | p := app.GetPrimaryRouterHTTPSPort() |
| 3468 | // If the HTTPS port is 443 (default), it doesn't get included in URL |
| 3469 | if p != "443" { |
| 3470 | url = url + ":" + p |
| 3471 | } |
| 3472 | } else { |
| 3473 | url = app.GetWebContainerDirectHTTPSURL() |
| 3474 | } |
| 3475 | return url |
| 3476 | } |
| 3477 | |
| 3478 | // GetAllURLs returns an array of all the URLs for the project |
| 3479 | func (app *DdevApp) GetAllURLs() (httpURLs []string, httpsURLs []string, allURLs []string) { |