Skip to content

A Node based http(s) proxy that can be configured to point to Akamai staging environments

License

Notifications You must be signed in to change notification settings

akhiljay/Akamai-staging-proxy

Repository files navigation

Akamai-staging-proxy Server and Chrome Extension Installation and User Guide

A Node based http(s) proxy that can be configured to point to Akamai staging environments without overiding the host file of your machine.

Maintained by Akhil Jayaprakash @ Akamai Technologies Twitter

alt-text

Installation Guide

Step 1: Install the "Akamai-staging-proxy" server locally

1.1: Install the server by typing the command below in terminal

npm install -g akamai-staging-proxy

1.3: Run Node server by typing the command below in terminal

akamai-staging-proxy

The server is now running on localhost:5050

Step 2: Install Google Example Chrome Proxy Extension

This extension helps you securely send traffic over to the node server running locally. This combination allows for both HTTP and HTTPS traffic

Click here to download the chrome extension.

Click here to install the extension

Usage Instructions

Step 1: Configure "Akamai-staging-proxy" extension with your Akamai staging enviornment settings

Enter multiple hostname staging-hostname combination into the separated by a comma For example:

  1. For single hostname & staging hostname combination enter : www.foo.com=www.foo.com.edgekey-staging.net

Notice the equals to "=" sign that separates the hostname you wish to send over to the staging environment.

  1. For multiple hostnames & staging hostnames combination enter : www.foo.com=www.foo.com.edgekey-staging.net,static.foo.com=127.0.0.1:9550

If you have a particular port you wish to send the traffic to you may do so by mentioning the port as part of the settings within the chrome extension.

alt-text

Step 3: Click "save proxy settings" to start routing chrome browser traffic to Akamai Staging

alt-text Now all your browser traffic is being proxies via the Akamai-staging-proxy server that you have running locally

Note: You can configure proxy settings for incognito windows as well. In order to do that you will need to first allow the extension to access incognito window

You are all Set!

Tweet at me here if you like the extension

Additional Notes:

  • If you are trying to use the chrome extension along with the Akamai Sandbox, then forward your hostname of interest to the sandbox by adding the following instruction "www.foo.com=127.0.0.1:9550" where 127.0.0.1 is the host IP address where the sandbox client is running and the port 9550 is the sandbox client port
  • You can always revert back your Chrome browser's proxy settings by selecting "Use the system's proxy settings" within the google proxy extension
  • You can keep the node server running if you wish, but if you may wish to stop it anytime by clicking on CRTL-C

Credits

  1. Chrome Extension code from Mike West @ google
  2. Node HTTP server based on Node Proxy Server Charlie Robbins, Jarrett Cruger & the Contributors.

About

A Node based http(s) proxy that can be configured to point to Akamai staging environments

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published