GetWebContainerDirectHTTPURL returns the URL that can be used without the router to get to web container.
()
| 3532 | |
| 3533 | // GetWebContainerDirectHTTPURL returns the URL that can be used without the router to get to web container. |
| 3534 | func (app *DdevApp) GetWebContainerDirectHTTPURL() string { |
| 3535 | // Get direct address of web container |
| 3536 | dockerIP, _ := dockerutil.GetDockerIP() |
| 3537 | |
| 3538 | port, err := app.GetWebContainerDirectHTTPPort() |
| 3539 | |
| 3540 | if err != nil { |
| 3541 | return "" |
| 3542 | } |
| 3543 | |
| 3544 | return fmt.Sprintf("http://%s:%d", dockerIP, port) |
| 3545 | } |
| 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 { |