Skip to content

Commit 1f1d678

Browse files
committed
moving wsgi app from socket to port
1 parent 796e432 commit 1f1d678

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ansible/roles/app-AfterInstall/templates/app.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ server {
88
}
99

1010
location /api/spin {
11-
uwsgi_pass unix:///app/socket/infra-demo.sock;
11+
uwsgi_pass 127.0.0.1:8008;
1212
include /etc/nginx/uwsgi_params;
1313
uwsgi_param UWSGI_SCRIPT /app/src/wsgi.py;
1414
# following config allow us to map /api/spin to /spin on uwsgi:

ansible/roles/app-AfterInstall/templates/infra-demo.ini.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ wsgi-env-behaviour = holy
1010
enable-threads = 1
1111
http-auto-chunked = 1
1212
http-keepalive = 1
13-
uwsgi-socket = /app/socket/infra-demo.sock
13+
uwsgi-socket = 127.0.0.1:8008
1414

0 commit comments

Comments
 (0)