Merge branch 'master' of ssh://git.planet-lab.org/git/plstackapi
authorScott Baker <smbaker@gmail.com>
Wed, 21 May 2014 17:11:25 +0000 (10:11 -0700)
committerScott Baker <smbaker@gmail.com>
Wed, 21 May 2014 17:11:25 +0000 (10:11 -0700)
planetstack/nginx/planetstack.conf [new file with mode: 0644]
planetstack/uwsgi/planetstack.ini [new file with mode: 0644]

diff --git a/planetstack/nginx/planetstack.conf b/planetstack/nginx/planetstack.conf
new file mode 100644 (file)
index 0000000..d25ab0b
--- /dev/null
@@ -0,0 +1,22 @@
+upstream backend {
+  # least_conn;   
+  server 127.0.0.1:9001;
+  server unix:/var/run/planetstack.uwsgi.sock;
+}
+
+
+server {
+    listen 8081;
+    server_name 128.112.139.48;
+
+    location /static/ {
+        alias /opt/planetstack/core/static/;
+        expires 30d;
+        access_log off;
+    }
+
+    location / {
+        include /etc/nginx/uwsgi_params;
+        uwsgi_pass backend;
+    }
+}
diff --git a/planetstack/uwsgi/planetstack.ini b/planetstack/uwsgi/planetstack.ini
new file mode 100644 (file)
index 0000000..c712568
--- /dev/null
@@ -0,0 +1,14 @@
+[uwsgi]
+chdir = /opt/planetstack
+module = planetstack.wsgi:application
+env = DJANGO_SETTINGS_MODULE=planetstack.settings
+socket = /var/run/planestack.uwsgi.sock
+socket = 127.0.0.1:9001
+http = 128.112.139.48:9002
+stats = 127.0.0.1:9003
+workers = 3
+master = true
+processes = 8 
+#--uid=1000 --gid=2000
+harakiri = 20
+daemonize=/var/log/uwsgi/planetstack.log