Skip to content

[dogshell] enable proxy#415

Merged
zippolyte merged 2 commits intoDataDog:masterfrom
ian28223:master
Aug 27, 2019
Merged

[dogshell] enable proxy#415
zippolyte merged 2 commits intoDataDog:masterfrom
ian28223:master

Conversation

@ian28223
Copy link
Copy Markdown
Contributor

@ian28223 ian28223 commented Jun 27, 2019

What does this PR do

Allows for configuring a proxy for Dogshell.

sample ~/.dogrc that utilizes a proxy

[Connection]
apikey = xxx
appkey = yyy
api_host = https://api.datadoghq.com

[Proxy]
http = http://localhost:3128/
https = http://localhost:3128/

Motivation

Someone asked in public slack how to use dogshell with a proxy.
Told him he could set api_host to a reverse proxy. Then, I looked at the code and found that dogshell uses datadog.api.initialize here

...and that initialize already takes in proxies as a parameter here

... so I figured I could just find a way pass the information from dogrc

@ian28223 ian28223 requested a review from a team as a code owner June 27, 2019 04:46
Copy link
Copy Markdown
Contributor

@gzussa gzussa left a comment

Choose a reason for hiding this comment

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

Seems legit to me. However could you add the motivation for this in the PR description

@ian28223
Copy link
Copy Markdown
Contributor Author

Seems legit to me. However could you add the motivation for this in the PR description

Done! And thanks for the approval! 🙇

Comment thread datadog/dogshell/common.py Outdated
Co-Authored-By: Hippolyte HENRY <zippolyte@users.noreply.github.com>
@zippolyte zippolyte merged commit d870776 into DataDog:master Aug 27, 2019
dabcoder pushed a commit to dabcoder/datadogpy that referenced this pull request Oct 25, 2019
* [dogshell] enable proxy

* Update datadog/dogshell/common.py

Co-Authored-By: Hippolyte HENRY <zippolyte@users.noreply.github.com>
dabcoder pushed a commit to dabcoder/datadogpy that referenced this pull request Nov 28, 2019
* [dogshell] enable proxy

* Update datadog/dogshell/common.py

Co-Authored-By: Hippolyte HENRY <zippolyte@users.noreply.github.com>
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.

3 participants