
The admin port was connecting to the public socket and the public port was connecting to the admin socket to communicate with uwsgi. The config is updated to connect the correct ports and sockets. Thanks to David Ames <david.ames@canonical.com> for figuring this out. Change-Id: I3a909a0982513923c35ab4103b6eee57753b0595
21 lines
612 B
Django/Jinja
21 lines
612 B
Django/Jinja
server {
|
|
listen 5000;
|
|
access_log {{ snap_common }}/log/nginx-access.log;
|
|
error_log {{ snap_common }}/log/nginx-error.log;
|
|
location / {
|
|
include {{ snap }}/usr/conf/uwsgi_params;
|
|
uwsgi_param SCRIPT_NAME '';
|
|
uwsgi_pass unix://{{ snap_common }}/run/public.sock;
|
|
}
|
|
}
|
|
server {
|
|
listen 35357;
|
|
access_log {{ snap_common }}/log/nginx-access.log;
|
|
error_log {{ snap_common }}/log/nginx-error.log;
|
|
location / {
|
|
include {{ snap }}/usr/conf/uwsgi_params;
|
|
uwsgi_param SCRIPT_NAME '';
|
|
uwsgi_pass unix://{{ snap_common }}/run/admin.sock;
|
|
}
|
|
}
|