We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e423af commit e8d95f4Copy full SHA for e8d95f4
1 file changed
mix-blog/nginx/default.conf
@@ -1,5 +1,6 @@
1
server {
2
listen 80;
3
+ listen [::]:80;
4
server_name 10.156.58.203; # Change to yours
5
6
location /static/ {
@@ -11,8 +12,19 @@ server {
11
12
}
13
14
location / {
- 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;
19
proxy_pass http://unix:/gunicorn.sock;
20
21
22
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