Update by natay on Tue Jul 23 14:35:53 EDT 2019 from Admins-MacBook-Air.local
+# The upstream app.
+upstream app {
+ server 165.227.81.177:8080;
+}
# Main server configuration.
server {
@@ -28,7 +32,12 @@ server {
}
location / {
- try_files $uri $uri/ =404;
+ include uwsgi_params;
+ uwsgi_pass app;
+ uwsgi_param Host $host;
+ uwsgi_param X-Real-IP $remote_addr;
+ uwsgi_param X-Forwarded-For $proxy_add_x_forwarded_for;
+ uwsgi_param X-Forwarded-Proto $http_x_forwarded_proto;
}
}
