radames commited on
Commit
fa35ee9
1 Parent(s): e5de00c

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +8 -0
nginx.conf CHANGED
@@ -11,7 +11,11 @@ server {
11
  proxy_set_header Upgrade $http_upgrade;
12
  proxy_set_header Connection 'upgrade';
13
  proxy_set_header Host $host;
 
 
14
  proxy_cache_bypass $http_upgrade;
 
 
15
  }
16
 
17
  location /static/ {
@@ -22,6 +26,10 @@ server {
22
  proxy_set_header Upgrade $http_upgrade;
23
  proxy_set_header Connection 'upgrade';
24
  proxy_set_header Host $host;
 
 
25
  proxy_cache_bypass $http_upgrade;
 
 
26
  }
27
  }
 
11
  proxy_set_header Upgrade $http_upgrade;
12
  proxy_set_header Connection 'upgrade';
13
  proxy_set_header Host $host;
14
+ proxy_set_header X-Real-IP $remote_addr;
15
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16
  proxy_cache_bypass $http_upgrade;
17
+ proxy_read_timeout 86400;
18
+ proxy_redirect off;
19
  }
20
 
21
  location /static/ {
 
26
  proxy_set_header Upgrade $http_upgrade;
27
  proxy_set_header Connection 'upgrade';
28
  proxy_set_header Host $host;
29
+ proxy_set_header X-Real-IP $remote_addr;
30
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
31
  proxy_cache_bypass $http_upgrade;
32
+ proxy_read_timeout 86400;
33
+ proxy_redirect off;
34
  }
35
  }