Skip to content

Commit 3b01af3

Browse files
committed
updated nginx and supervisor config
1 parent 26d78d0 commit 3b01af3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/flask_project

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
server {
22
location / {
3-
proxy_pass http://127.0.0.1:8000;
3+
proxy_pass http://localhost:8000;
4+
proxy_set_header Host $host;
5+
proxy_set_header X-Real-IP $remote_addr;
46
}
57
location /static {
68
alias /home/www/flask_project/static/;

config/flask_project.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[program:flask_project]
2-
command = gunicorn app:app -b localhost:8000
2+
command = /home/www/env/bin/gunicorn app:app -b localhost:8000
33
directory = /home/www/flask_project
44
user = newuser

0 commit comments

Comments
 (0)