Skip to content

print https:// before public endpoints #1207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jordanstephens
Copy link
Member

Description

Add https:// before non-internal endpoints so that they are clickable from the shell.

Linked Issues

Checklist

  • I have performed a self-review of my code
  • I have added appropriate tests
  • I have updated the Defang CLI docs and/or README to reflect my changes, if necessary

@jordanstephens jordanstephens requested a review from lionello May 23, 2025 21:32
@jordanstephens jordanstephens requested a review from lionello June 30, 2025 17:21
},
expectedLines: []string{
"Deployment Name Status Endpoints",
" service1 NOT_SPECIFIED https://service1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lionello what's a good example of an endpoint that doesn't have a port, but which should be prefixed with https://? I don't think that this is a good example.

assuming port-suffixed endpoints are private
@jordanstephens jordanstephens force-pushed the jordan/show-deployed-endpoints-with-protocols branch from c670bdb to 5d69c71 Compare June 30, 2025 17:28
"service1.internal",
expectedLines: []string{
"Deployment Name Status Endpoints DomainName",
" service1 NOT_SPECIFIED https://example.com, service1.internal:80 https://example.com",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can't be be right, HTTPS to 80?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not https to 80. it's https to example.com.

@jordanstephens jordanstephens requested a review from lionello July 2, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants