microsoft / dev-tunnels

Dev Tunnels SDK
MIT License
286 stars 20 forks source link

What is the source code in this repo for? #432

Closed DomenPigeon closed 4 months ago

DomenPigeon commented 5 months ago

Hello, I have used dev tunnel for some time now and I really think they are great. Now I was thinking about a little more advanced scenario how to use them and I read the whole docs again and just could really figure out what the C# code in this repository is for.

I have used the CLI and I know how to use it, I checked and saw that this repo doesn't contain the CLI code, so I thought that it maybe containes code how to setup your own Tunnel Relay Service in order to host your own tunnels on a server, but because there is nothing metioned about this in docs I thought it's not this.

Is it maybe to connecte to DevTunnels via code instead of via the CLI exe?

I am sorry if it's a stupid question, but I coudn't figure it out.

derekbekoe commented 5 months ago

This repo contains SDKs that can be used to interact with the Dev Tunnels service (e.g. manage tunnels, host tunnels, connect to tunnels, etc.). The source code for the devtunnel CLI is not open-source. However, the CLI is built on the SDK available in this repo.

DomenPigeon commented 5 months ago

Oh great, so if I understand correctly if I have my own server I could use this SDK for my own hosting of dev tunnels instead of them going to azure? I could create tunnels like: https://.my-own-domain.com:8080 Is there any documentation how to do this except the source code?

derekbekoe commented 5 months ago

The SDK is for connecting with and using the service hosted at devtunnels.ms. We don't support running the service on your own servers.

DomenPigeon commented 4 months ago

Thanks for clarification.