canercandan / django-openudc

An application of openudc protocole using Django.
http://canercandan.github.io/django-openudc
GNU Affero General Public License v3.0
9 stars 2 forks source link

Installation of rabbitmq on openudc server (2p) #14

Open canercandan opened 11 years ago

canercandan commented 11 years ago

In the continuity of #12, I need to install rabbitmq on the openudc server in order to test it on WAN

canercandan commented 11 years ago
canercandan commented 11 years ago
canercandan commented 11 years ago
canercandan commented 11 years ago
canercandan commented 11 years ago
canercandan commented 11 years ago
canercandan commented 11 years ago
canercandan commented 11 years ago
canercandan commented 11 years ago
[Unit]
Description=Django OpenUDC

[Service]
Type=forking
User=root
Group=root
PIDFile=/tmp/django-openudc.pid
ExecStart=/usr/bin/python2 /opt/django-openudc/manage.py runfcgi workdir=/opt/django-openudc method=threaded host=127.0.0.1 port=3033 pidfile=/tmp/django-openudc.pid

[Install]
WantedBy=multi-user.target
canercandan commented 11 years ago
server {
    server_name demo.openudc.org;
    server_name demo.open-udc.org;
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;
    location / {
        # fastcgi_pass unix:///tmp/openudc.sock;
    fastcgi_pass   127.0.0.1:3033;
        # necessary parameter
        fastcgi_param PATH_INFO $fastcgi_script_name;

        # to deal with POST requests
        fastcgi_param REQUEST_METHOD $request_method;
        fastcgi_param CONTENT_TYPE $content_type;
        fastcgi_param CONTENT_LENGTH $content_length;

        # http://stackoverflow.com/questions/605173/how-to-nginx-virtual-servers-fcgi-for-django uses many other parameters, 
        # some may be necessary in some situations
    fastcgi_param  SERVER_PORT        $server_port;
    fastcgi_param  SERVER_NAME        $server_name;
    fastcgi_param  SERVER_PROTOCOL    $server_protocol;
        # include        fastcgi.conf;
    }
  location /static {
    alias /opt/django-openudc/static;
    autoindex off;
  }
}
canercandan commented 11 years ago
canercandan commented 11 years ago
canercandan commented 11 years ago
canercandan commented 11 years ago

I just installed two AMQP servers on two different virtual machines:

canercandan commented 11 years ago

Installing another instance of openudc in the second server in case it is needed

canercandan commented 11 years ago