Connect admin/public ports to correct sockets

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
This commit is contained in:
Corey Bryant 2017-06-22 15:34:30 +00:00
parent 9d491f55a8
commit 50b51c6f75
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ server {
location / {
include {{ snap }}/usr/conf/uwsgi_params;
uwsgi_param SCRIPT_NAME '';
uwsgi_pass unix://{{ snap_common }}/run/admin.sock;
uwsgi_pass unix://{{ snap_common }}/run/public.sock;
}
}
server {
@ -15,6 +15,6 @@ server {
location / {
include {{ snap }}/usr/conf/uwsgi_params;
uwsgi_param SCRIPT_NAME '';
uwsgi_pass unix://{{ snap_common }}/run/public.sock;
uwsgi_pass unix://{{ snap_common }}/run/admin.sock;
}
}