On Jun 16, 2014, at 8:52 PM, Wido den Hollander <[email protected]> wrote:

>> Op 16 jun. 2014 om 19:23 heeft "Jason Harley" <[email protected]> het 
>> volgende geschreven:
>> 
>> Howdy —
>> 
>> I’d like to run the ceph REST API behind nginx, and uWSGI and UNIX sockets 
>> seems like a smart way to do this.  Has anyone attempted to get this setup 
>> working?  I’ve tried writing a uWSGI wrapper as well as just telling ‘uwsgi’ 
>> to call the ‘ceph_rest_api’ module without luck.
>> 
> 
> Not using uwsgi, but via mod_wsgi. I have a Gist online: 
> https://gist.github.com/wido/8bf032e5f482bfef949c
> 
> Hope that helps!

This was tremendously helpful.  Thank you, Wido!

It seems my biggest issue was attempting to use ‘uwsgi’ with the master process 
manager: the process would just hang trying to speak to the admin socket for 
some reason.

With your wsgi file from the Gist above I was able to get the REST API working 
with upstart, uwsgi and nginx.

I’ve shared my config’s here: 
https://gist.github.com/jharley/e23034135966bb7b438e

./JRH
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to