Skip to content

Reverse proxy app to combine multiple applications.

License

Notifications You must be signed in to change notification settings

kathycarothers/fec-proxy

 
 

Repository files navigation

fec-proxy

Reverse proxy app to combine multiple applications and redirect rules for fec.gov.

Configuration

Set the PROXIES environment variable to a JSON object mapping proxy routes to URLs. As an example, you can do this manually with a command similar to this:

cf set-env fec-proxy PROXIES='{"/": "https://app1.app.cloud.gov", "/app2": "https://app1.app.cloud.gov"}'

Note that this is currently set and configured in the manifest files for deployment.

Deployment

Unlike the other applications, the master branch is usually deployed to all three environments, and there is no special workflow for any updates or hotfixes. However, it is best to deploy the proxy app at night because it may temporarily effect our routes and wagtail work during deploy.

Before you start, make sure you have the autopilot (installation instructions) Cloud Foundry plugin installed. You can check to see if you have the plugin installed by running cf plugins checking if autopilot is in the list.

Once the plugin is installed, when you're ready to deploy any changes make sure you are on the master branch and have done a git pull so that all changes are pulled down. Now run the following commands, where <space> is the desired space you'd like to deploy to (dev, stage, or prod):

    cf target -s <space>
    cf zero-downtime-push proxy -f manifest_<space>.yml

When the deployment is done, be sure to test the site to make sure everything is still functioning.

Testing changes before deploying to Production

If you'd like to test any changes before they are fully merged and made a part of the code, you should feel free to do so but only in the dev and staging spaces. To do this, just make sure you are on the branch you are currently working in and follow the deployment instructions above.

Just be sure to deploy the master branch again once the code is merged in (or the changes are rejected/abandoned).

About

Reverse proxy app to combine multiple applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published