Permalink
Browse files

update nginx config / uwsgi proxy

  • Loading branch information...
vicgarcia committed Nov 25, 2017
1 parent 6a3092e commit 22712dd67634ba5f747bed803c87d9d6e65fd000
Showing with 6 additions and 2 deletions.
  1. +6 −2 nginx.conf
@@ -36,7 +36,11 @@ server {

# proxy non-static requests to django server
location / {
uwsgi_pass django;
include /opt/getmarried/uwsgi_params;
proxy_pass http://127.0.0.1:5007;
proxy_redirect off;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

0 comments on commit 22712dd

Please sign in to comment.