GetWebContainerDirectHTTPSURL returns the URL that can be used without the router to get to web container via https.
()
| 3546 | |
| 3547 | // GetWebContainerDirectHTTPSURL returns the URL that can be used without the router to get to web container via https. |
| 3548 | func (app *DdevApp) GetWebContainerDirectHTTPSURL() string { |
| 3549 | // Get direct address of web container |
| 3550 | dockerIP, _ := dockerutil.GetDockerIP() |
| 3551 | |
| 3552 | port, err := app.GetWebContainerDirectHTTPSPort() |
| 3553 | |
| 3554 | if err != nil { |
| 3555 | return "" |
| 3556 | } |
| 3557 | |
| 3558 | return fmt.Sprintf("https://%s:%d", dockerIP, port) |
| 3559 | } |
| 3560 | |
| 3561 | // GetWebContainerDirectHTTPPort returns the direct-access public tcp port for http |
| 3562 | func (app *DdevApp) GetWebContainerDirectHTTPPort() (int, error) { |