Giter Site home page Giter Site logo

akhiljay / akamai-staging-proxy Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.27 MB

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

License: MIT License

JavaScript 100.00%
akamai staging-environment proxy-server node-js

akamai-staging-proxy's Introduction

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.

akamai-staging-proxy's People

Contributors

akhiljay avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.