Skip to content
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

How to configure proxy? #23

Open
parag0kyndryl opened this issue Jun 21, 2022 · 5 comments
Open

How to configure proxy? #23

parag0kyndryl opened this issue Jun 21, 2022 · 5 comments
Labels
question Further information is requested

Comments

@parag0kyndryl
Copy link

Hi,

Can you tell me how can I configure the proxy while using @BotDeclaration?

Any help is appreciated.

Thank You.

@wictorwilen wictorwilen added the question Further information is requested label Jun 23, 2022
@wictorwilen
Copy link
Owner

Hi @parag0kyndryl - what do you mean with configure the proxy, what proxy are you talking about

@parag0kyndryl
Copy link
Author

parag0kyndryl commented Jun 23, 2022

Basically, my server's network traffic must be routed via a proxy URL because I have a URL whitelisting in place. I'm just looking for a similar option while using this package.

Something like this: https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/src/IClientOptions.ts#L29 (I'm using this for Microsoft Graph API)

Edit: Updated the link

@wictorwilen
Copy link
Owner

@parag0kyndryl - the BotDeclaration only specifies the local endpoint (path) of the server. It does not have anything to do on how things are routed to the server.

@parag0kyndryl
Copy link
Author

parag0kyndryl commented Jun 23, 2022

You're right, but express-msteams-host internally trying to reach https://login.botframework.com and that is where the issue is. My server is inside a corporate network and without specifying a proxy option the package can not connect to https://login.botframework.com

@wictorwilen
Copy link
Owner

It's not express-msteams-host that is trying to do this, it's the bot framework and it is required for bot framework to communicate with that endpoint. This might help you: https://docs.microsoft.com/en-us/composer/configure-composer-proxy?tabs=windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants