-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Feature] Integrate ngrok support #366
Comments
Very cool! Is there a programmatic way to get the ngrok url for a resource being proxied? That would make it possible to pass it to other resources |
Could try the api to retrieve it - or is there an easy way to pipe the stdout of the container to the host. |
Ngrok doesn't have an api? |
Yes there is, and i found a way. when i am called for the ResourceReadyEvent subscription, i can query the ngrok api to retireve the endpoints. Is there a way to publish those endpoints at this stage? Adding to the builder is probably to late, isn't it? |
The other question is, what happens to this resource in publish mode? |
I currently have it excluded from the manifest, as I saw it for development purposes only. But as i read more on ngrok, it could make sense to publish it. Any suggestions here? |
What would the role of ngrok in production be? I've merged the integration PR, it'll be in a preview on NuGet soon (takes a for manual steps). In the meantime, can you get it on docs - https://github.com/dotnet/docs-aspire/issues/new?template=05-community-toolkit-docs-request.yml |
First I thought ngrok in production would not make no much sense as I only use it in development, but it acts as an api gateway Saas (https://ngrok.com/use-cases/api-gateway) as you can connect your own domains to it.
Will get on the docs during the weekend. Is there an existing hosting related docs for reference?
… On 9. Jan 2025, at 04:49, Aaron Powell ***@***.***> wrote:
What would the role of ngrok in production be?
I've merged the integration PR, it'll be in a preview on NuGet soon (takes a for manual steps). In the meantime, can you get it on docs - https://github.com/dotnet/docs-aspire/issues/new?template=05-community-toolkit-docs-request.yml
—
Reply to this email directly, view it on GitHub <#366 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAP5NRKPZLECCH3QXSZRXL2JXWSZAVCNFSM6AAAAABUSMLW7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZZGEZDOMBQGQ>.
You are receiving this because you authored the thread.
|
Check out any of the ones in https://github.com/dotnet/docs-aspire/tree/main/docs/community-toolkit as a reference point |
Description
The feature request is to integrate ngrok support into the CommunityToolkit.Aspire project.
Motivation
ngrok support would enhance the developer experience by enabling secure and public URLs for local applications, which is especially useful for testing and demo purposes. This feature would be a great addition to the toolkit, providing:
Proposed Solution
Integrate the CommunityToolkit.Aspire.Hosting.Ngrok library into the main CommunityToolkit.Aspire repository.
For more information see https://github.com/esskar/CommunityToolkit.Aspire/tree/main/src/CommunityToolkit.Aspire.Hosting.Ngrok
The text was updated successfully, but these errors were encountered: