From c881987c849bb9612af443afd4cb5c684e2db79b Mon Sep 17 00:00:00 2001 From: darko-poljak Date: Sat, 14 May 2016 21:05:06 +0200 Subject: [PATCH] Add uwsgi and nginx config. --- nginx.conf | 34 ++++++++++++++++++++++++++++++++++ uwsgi.ini | 16 ++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 nginx.conf create mode 100644 uwsgi.ini diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..9b3214a --- /dev/null +++ b/nginx.conf @@ -0,0 +1,34 @@ + +user freebsd; +worker_processes 1; + +#error_log logs/error.log; +#error_log logs/error.log notice; +#error_log logs/error.log info; + +#pid logs/nginx.pid; + + +events { + worker_connections 1024; +} + + +http { + include mime.types; + default_type application/octet-stream; + + sendfile on; + + keepalive_timeout 65; + + server { + listen 80; + server_name 188.226.169.172; + + location / { + include uwsgi_params; + uwsgi_pass unix:/home/freebsd/x/x.sock; + } + } +} diff --git a/uwsgi.ini b/uwsgi.ini new file mode 100644 index 0000000..621e60a --- /dev/null +++ b/uwsgi.ini @@ -0,0 +1,16 @@ +[uwsgi] +module=wsgi +chdir=/home/freebsd/x +file=wsgi.py + +master=true +processes=4 + +socket=/home/freebsd/x/x.sock +chmod-socket=664 + +uid=freebsd +gid=freebsd + +daemonize=true +vacuum=true