I'm a n00b using FreeBSD and having problems getting everything to work properly.
Installed www/nginx, www/uwsgi, and sysutils/py-supervisor based on instructions found here -
https://www.srijn.net/2015/03/django-uwsgi-nginx-on-freebsd/
However I am having difficulties getting my bottle app to display properly.
Running uwsgi alone with --ini myapp.ini works but with nginx I am getting 502 error.
My uwsgi file:
myapp.conf (inside conf.d folder)
Anyone who can help a lost soul?
Installed www/nginx, www/uwsgi, and sysutils/py-supervisor based on instructions found here -
https://www.srijn.net/2015/03/django-uwsgi-nginx-on-freebsd/
However I am having difficulties getting my bottle app to display properly.
Running uwsgi alone with --ini myapp.ini works but with nginx I am getting 502 error.
My uwsgi file:
Code:
[uwsgi]
module = wsgihandler
socket = 127.0.0.1:3031
master = true
chmod-socket = 664
uid = www
gid = www
#enable-threads = true
proesses = 4
socket-timeout = 180
post-buffering = 8192
max-requests = 1000
buffer-size = 32768
wsgi-file = /usr/local/www/myapp/index.py
Code:
upstream myapp {
least_conn;
server unix:///var/run/uwsgi_myapp0.sock;
server unix:///var/run/uwsgi_myapp1.sock;
server unix:///var/run/uwsgi_myapp2.sock;
server unix:///var/run/uwsgi_myapp3.sock;
server unix:///var/run/uwsgi_myapp4.sock;
}
server {
listen 3031;
server_name localhost;
location / {
uwsgi_pass myapp;
include uwsgi_params;
}
}
Last edited by a moderator: