فهرست منبع

Algún cambio en la conf de nginx

Tino 5 ماه پیش
والد
کامیت
42cacfd386
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      nginx/default.conf

+ 1 - 0
nginx/default.conf

@@ -12,6 +12,7 @@ server {
     location / {
         proxy_pass http://django_project;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+	proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header Host $host;
         proxy_redirect off;
         client_max_body_size 100M;