Closed Bug 777998 Opened 12 years ago Closed 12 years ago

Setup solitude as proxy on -dev

Categories

(Cloud Services :: Operations: Marketplace, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: andy+bugzilla, Assigned: oremj)

References

Details

In bug 777133 we added the ability to run solitude as a proxy and talk to a proxy. So in for -dev we'll need another instance of solitude running as a proxy. Requests will go from marketplace > solitude > solitude proxy > paypal.

The proxy will have the PAYPAL settings and keys and will not be able to talk to the database. The other solitude will have the DATABASE settings and know the location of the proxy, but will not be able to talk to paypal.

To run solitude as a proxy, it will need it's own local.py and lots of settings moved around.

To run solitude proxy, use wsgi/proxy.py for wsgi.

Settings:

* move all the PAYPAL specific stuff over from the main solitude to the proxy so that's: PAYPAL_APP_ID, PAYPAL_AUTH, PAYPAL_CHAINS, PAYPAL_URL_WHITELIST, PAYPAL_USE_SANDBOX. Those do not need to present on the main.
* on the proxy, it doesn't need to access the database, you can set that to DATABASES = {'default': {},} and it might be ok.
* on the main, add in PAYPAL_PROXY='http://path.to.proxy.solitude/proxy/paypal/'

The proxy will still have nagios in the same place, so we can add that into nagios.

Might work. Please ask me about if this doesn't make sense.
Assignee: server-ops → oremj
The proxy has been configured for -dev.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: Server Operations: AMO Operations → Operations: Marketplace
Product: mozilla.org → Mozilla Services
You need to log in before you can comment on or make changes to this bug.