We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26d78d0 commit 3b01af3Copy full SHA for 3b01af3
config/flask_project
@@ -1,6 +1,8 @@
1
server {
2
location / {
3
- proxy_pass http://127.0.0.1:8000;
+ proxy_pass http://localhost:8000;
4
+ proxy_set_header Host $host;
5
+ proxy_set_header X-Real-IP $remote_addr;
6
}
7
location /static {
8
alias /home/www/flask_project/static/;
config/flask_project.conf
@@ -1,4 +1,4 @@
[program:flask_project]
-command = gunicorn app:app -b localhost:8000
+command = /home/www/env/bin/gunicorn app:app -b localhost:8000
directory = /home/www/flask_project
user = newuser
0 commit comments