Post
Topic
Board Altcoin Discussion
Re: *** Official: masterchain.info testing thread
by
grazcoin
on 23/01/2014, 23:10:37 UTC
@grazcoin, would you be willing to share your nginx.conf file with us?  That might answer a lot of our questions on how all this is tied together.

I prefer not to give the the whole file just to keep attackers more challenged ;-)
In my current configuration I use mostly the defaults of nginx that come with the package. The integration with the apps could be done in many ways, and I chose uwsgi (you can choose any other method). Maybe it would be easier for you to start with apache which has more documentation for playing with python.

The important integration parts are:
Code:
        include uwsgi_params;
        uwsgi_param SCRIPT_NAME   $app;
        uwsgi_param UWSGI_MODULE   $app;
        uwsgi_param UWSGI_CALLABLE   "${app}_handler";

and:

Code:
        location /wallet/validateaddr/ {
            set   $app   validateaddr;
            uwsgi_pass   127.0.0.1:PORT;
        }
        location /wallet/send/ {
            set   $app   send;
            uwsgi_pass   127.0.0.1:PORT;
        }
        location /wallet/sell/ {
            set   $app   sell;
            uwsgi_pass   127.0.0.1:PORT;
        }
        location /wallet/accept/ {
            set   $app   accept;
            uwsgi_pass   127.0.0.1:PORT;