Skip to content

Commit

Permalink
Getting Started: Add instructions for proxy setup
Browse files Browse the repository at this point in the history
Common workarounds for those using a proxy
  • Loading branch information
nschonni committed Apr 2, 2014
1 parent da0b270 commit d1189f6
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 2 deletions.
33 changes: 33 additions & 0 deletions site/pages/docs/proxy-en.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
{
"title": "Working behind a proxy",
"language": "en",
"description": "Instructions for running behind a proxy",
"altLangPrefix": "start",
"dateModified": "2014-04-01"
}
---
The following steps can be used for those working behind proxys that require authentication. All these methods will store your password in plain text, so use caution when doing this.

<h2>Setting the proxy for NPM installs</h2>
<ol>
<li>Open a command prompt</li>
<li>Run the following commands replacing "USERNAME", "PASSWORD", "PROXY_ADDRESS", and "PROXY_PORT" with your netork's information:
<ol>
<li><code>npm config set proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT</code></li>
<li><code>npm config set https-proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT</code></li>
</ol>
</li>
</ol>

<h2>Setting the proxy for other tasks</h2>
Many plugins will also look for environmental variables of "HTTP_PROXY" and "HTTPS_PROXY" when they need to call out to the internet.
<ol>
<li>You can set these variables with the value "http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT" each session by calling:
<ol>
<li>Windows Command Prompt: <code>set http://HTTP_PROXY=USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT</code><li>
<li>Bash Shell: "export http://HTTP_PROXY=USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT"</li>
</ol>
</li>
<li>To avoid doing this everytime, you can add these commands the the your console's "RC" file. If you are using the Git Bash Shell on Windows, you can add the export statements to the ".bashrc" in the root of your user profile ("C:\Users\USERNAME"). That file is run everytime you open a Git Bash session, so the environmental variables will be available from the command line. You may need to create that file with a text editor, since Windows doesn't allow creating files starting with a period in Windows Explorer.</li>
</ol>
36 changes: 36 additions & 0 deletions site/pages/docs/proxy-fr.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
{
"title": "Working behind a proxy",
"language": "fr",
"description": "Instructions for running behind a proxy",
"altLangPrefix": "start",
"dateModified": "2014-04-01"
}
---
<div lang="en">
<p><strong>Needs translation</strong></p>
The following steps can be used for those working behind proxys that require authentication. All these methods will store your password in plain text, so use caution when doing this.

<h2>Setting the proxy for NPM installs</h2>
<ol>
<li>Open a command prompt</li>
<li>Run the following commands replacing "USERNAME", "PASSWORD", "PROXY_ADDRESS", and "PROXY_PORT" with your netork's information:
<ol>
<li><code>npm config set proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT</code></li>
<li><code>npm config set https-proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT</code></li>
</ol>
</li>
</ol>

<h2>Setting the proxy for other tasks</h2>
Many plugins will also look for environmental variables of "HTTP_PROXY" and "HTTPS_PROXY" when they need to call out to the internet.
<ol>
<li>You can set these variables with the value "http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT" each session by calling:
<ol>
<li>Windows Command Prompt: <code>set http://HTTP_PROXY=USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT</code><li>
<li>Bash Shell: "export http://HTTP_PROXY=USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT"</li>
</ol>
</li>
<li>To avoid doing this everytime, you can add these commands the the your console's "RC" file. If you are using the Git Bash Shell on Windows, you can add the export statements to the ".bashrc" in the root of your user profile ("C:\Users\USERNAME"). That file is run everytime you open a Git Bash session, so the environmental variables will be available from the command line. You may need to create that file with a text editor, since Windows doesn't allow creating files starting with a period in Windows Explorer.</li>
</ol>
</div>
2 changes: 1 addition & 1 deletion site/pages/docs/start-en.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dateModified": "2014-03-27"
}
---
Step 0 for all these instructions requires <a href="https://help.github.com/articles/signing-up-for-a-new-github-account">creating a GitHub account</a>. We suggest following GitHub's own guides on <a href="https://help.github.com/articles/set-up-git">setting up Git</a>.
Step 0 for all these instructions requires <a href="https://help.github.com/articles/signing-up-for-a-new-github-account">creating a GitHub account</a>. We suggest following GitHub's own guides on <a href="https://help.github.com/articles/set-up-git">setting up Git</a>. If you are working behind a proxy, you may want to look at the <a href="proxy-en.html">proxy troubleshootig guide</a>.

<section>
<h2 id="issues">I want to report a bug or ask a question about WET</h2>
Expand Down
2 changes: 1 addition & 1 deletion site/pages/docs/start-fr.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
---
<div lang="en">
<p><strong>Needs translation</strong></p>
Step 0 for all these instructions requires <a href="https://help.github.com/articles/signing-up-for-a-new-github-account">creating a GitHub account</a>. We suggest following GitHub's own guides on <a href="https://help.github.com/articles/set-up-git">setting up Git</a>.
Step 0 for all these instructions requires <a href="https://help.github.com/articles/signing-up-for-a-new-github-account">creating a GitHub account</a>. We suggest following GitHub's own guides on <a href="https://help.github.com/articles/set-up-git">setting up Git</a>. If you are working behind a proxy, you may want to look at the <a href="proxy-en.html">proxy troubleshootig guide</a>.

<section>
<h2 id="issues">I want to report a bug or ask a question about WET</h2>
Expand Down

0 comments on commit d1189f6

Please sign in to comment.