title: Nginx serves downloadable files
body: <p>nginx serves downloadable files. I am using django-rest with docker compose. On my PC no code errors are encountered. My nginx config file is as follows:</p>
  
  <pre><code>server {
      listen      80;
      server_name  1xxx;   # substitute by your FQDN and machine's IP address
      charset     utf-8;
      add_header Content-Disposition 'attachment; filename="file"';
      add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Content-Disposition';
      client_max_body_size 75M;   # adjust to taste
      location / {
          proxy_pass http://0.0.0.0:8000;
          proxy_set_header Host $host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      }
  }
  </code></pre>