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