MCPcopy Index your code
hub / github.com/ddev/ddev / GetWebContainerDirectHTTPURL

Method GetWebContainerDirectHTTPURL

pkg/ddevapp/ddevapp.go:3534–3545  ·  view source on GitHub ↗

GetWebContainerDirectHTTPURL returns the URL that can be used without the router to get to web container.

()

Source from the content-addressed store, hash-verified

3532
3533// GetWebContainerDirectHTTPURL returns the URL that can be used without the router to get to web container.
3534func (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.
3548func (app *DdevApp) GetWebContainerDirectHTTPSURL() string {

Calls 2

GetDockerIPFunction · 0.92