Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location / {
- set $cors '';
- add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since, xsrfcookiename, xsrfheadername,X-Forwarded-For';
- proxy_pass http://someupstreamserver;
- include uwsgi_params;
- proxy_set_header X-Forwarded-Proto https;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Scheme $scheme;
- proxy_read_timeout 800s;
- proxy_connect_timeout 800s;
- proxy_set_header Connection '';
- proxy_http_version 1.1;
- chunked_transfer_encoding off;
- proxy_buffering off;
- proxy_cache off;
- proxy_redirect off;
- proxy_set_header Host $http_host;
- }
- }
Add Comment
Please, Sign In to add comment