Commits

Massimiliano Ravelli committed 96fa6ea

improved nginx configuration

  • Participants
  • Parent commits c3c58b6

Comments (0)

Files changed (1)

File fagungis/conf/nginx.conf

         location / {
                 client_max_body_size %(nginx_client_max_body_size)iM;
                 proxy_pass   http://%(gunicorn_bind)s;
+                proxy_redirect    off;
+                proxy_set_header  Host              $host;
+                proxy_set_header  X-Real-IP         $remote_addr;
+                proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;
+                proxy_set_header  X-Forwarded-Proto $scheme;
         }
 
         location %(django_media_url)s