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

Method GetWebContainerDirectHTTPSURL

pkg/ddevapp/ddevapp.go:3548–3559  ·  view source on GitHub ↗

GetWebContainerDirectHTTPSURL returns the URL that can be used without the router to get to web container via https.

()

Source from the content-addressed store, hash-verified

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 {
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
3562func (app *DdevApp) GetWebContainerDirectHTTPPort() (int, error) {

Calls 2

GetDockerIPFunction · 0.92