Skip to content

Commit e8d95f4

Browse files
authored
Update default.conf
1 parent 4e423af commit e8d95f4

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

mix-blog/nginx/default.conf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
server {
22
listen 80;
3+
listen [::]:80;
34
server_name 10.156.58.203; # Change to yours
45

56
location /static/ {
@@ -11,8 +12,19 @@ server {
1112
}
1213

1314
location / {
14-
include proxy_params;
15+
proxy_set_header Host $http_host;
16+
proxy_set_header X-Real-IP $remote_addr;
17+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
18+
proxy_set_header X-Forwarded-Proto $scheme;
1519
proxy_pass http://unix:/gunicorn.sock;
1620
}
1721
}
1822

23+
server {
24+
listen 8080;
25+
location /healthCheck {
26+
access_log off;
27+
return 200;
28+
add_header Content-Type text/plain;
29+
}
30+
}

0 commit comments

Comments
 (0)