From 699c1549df32dd72098caae587c75f9f99762eb7 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 20 May 2014 16:28:16 -0400 Subject: [PATCH] initial checkin of uwsgi and nginx conf files --- planetstack/nginx/planetstack.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 planetstack/nginx/planetstack.conf diff --git a/planetstack/nginx/planetstack.conf b/planetstack/nginx/planetstack.conf new file mode 100644 index 0000000..d25ab0b --- /dev/null +++ b/planetstack/nginx/planetstack.conf @@ -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; + } +} -- 2.43.0