• 북마크

uwsgi

headers parsing with uWSGI and nginx

본문

https://github.com/pallets/werkzeug/issues/1465


location@proxy_to_app {
    include uwsgi_params;
    uwsgi_pass unix:///var/run/uwsgi/uwsgi.sock;
    uwsgi_param Host $http_host;
    uwsgi_param HTTP_X-Forwarded-For $proxy_add_x_forwarded_for;
    uwsgi_param HTTP_X-Forwarded-Proto https;
    uwsgi_param HTTP_X-Connected-User 'someUser';
    uwsgi_read_timeout300s;
    uwsgi_connect_timeout300s;
}
 

 

https://docs.nginx.com/nginx/admin-guide/web-server/app-gateway-uwsgi-django/

 

location /main {
            include /etc/nginx/uwsgi_params;
            uwsgi_pass django;
            uwsgi_param Host $host;
            uwsgi_param X-Real-IP $remote_addr;
            uwsgi_param X-Forwarded-For $proxy_add_x_forwarded_for;
            uwsgi_param X-Forwarded-Proto $http_x_forwarded_proto; 

        }

 

 

https://www.linode.com/community/questions/7363/nginx-python-behind-multiple-proxies 

 

uwsgiparam QUERYSTRING $query_string;

uwsgiparam REQUESTMETHOD $request_method;

uwsgiparam CONTENTTYPE $content_type;

uwsgiparam CONTENTLENGTH $content_length;

uwsgiparam REQUESTURI $request_uri;

uwsgiparam PATHINFO $document_uri;

uwsgiparam DOCUMENTROOT $document_root;

uwsgiparam SERVERPROTOCOL $server_protocol;

uwsgiparam REMOTEADDR $remote_addr;

uwsgiparam REMOTEPORT $remote_port;

uwsgiparam SERVERPORT $server_port;

uwsgiparam SERVERNAME $server_name;

https://linuxize.com/post/nginx-reverse-proxy/

https://stackoverrun.com/ko/q/11622396

   location /{
       uwsgi_pass  django;
       include     /path/to/uwsgi_params; 
       uwsgi_param Host $host;
       uwsgi_param X-Real-IP $remote_addr;
       uwsgi_param X-Forwarded-For $proxy_add_x_forwarded_for;
       uwsgi_param X-Forwarded-Proto $http_x_forwarded_proto;
       proxy_cache my_cache;}
   

 https://sepiros.tistory.com/25 

 

 

 

댓글목록 0

등록된 댓글이 없습니다.
전체 7 건 - 1 페이지
제목
최고관리자 1,056 2020.04.27
최고관리자 927 2020.05.18
최고관리자 1,577 2020.05.18
최고관리자 1,029 2020.05.18
최고관리자 1,060 2020.05.18
최고관리자 1,203 2020.05.18
최고관리자 805 2020.05.18