Skip to content

Commit

Permalink
Merge pull request #512 from aoberoi/docs-proxy
Browse files Browse the repository at this point in the history
add documentation about using a proxy
  • Loading branch information
aoberoi authored Jul 17, 2018
2 parents 55d41be + 965028b commit b45cb88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/_pages/advanced_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ headings:
- title: Customizing rtm.start options
- title: Customizing the RTM Client
- title: Activate logging for debugging
- title: Running Hubot behind an HTTP Proxy
- title: Accessing more API methods and distribution
---

Expand Down Expand Up @@ -77,3 +78,14 @@ initialization of the `WebClient` object to the following:
```coffeescript
web = new WebClient process.env.SLACK_OAUTH_TOKEN
```

## Running Hubot behind an HTTP Proxy

You might find the need to run Hubot inside a firewall, where the internet is only accessible via a specific proxy.
Have no fear, environment variable configuration is here. Just add the `https_proxy` environment variable to your
startup (we'll just do this on the command line for this example) with the address and authentication information of
your proxy.

```
$ https_proxy="http://user:pass@localhost:8888" HUBOT_SLACK_TOKEN=xoxb-xxxxx ./bin/hubot --adapter slack
```

0 comments on commit b45cb88

Please sign in to comment.