From aa3a66cf016b81a713dd81025ec41d2689ac5e90 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 5 Jan 2021 17:39:58 +0800 Subject: [PATCH] Create gunicorn.conf --- rewrite/nginx/gunicorn.conf | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 rewrite/nginx/gunicorn.conf diff --git a/rewrite/nginx/gunicorn.conf b/rewrite/nginx/gunicorn.conf new file mode 100755 index 000000000..e1d52636d --- /dev/null +++ b/rewrite/nginx/gunicorn.conf @@ -0,0 +1,5 @@ +location / { + proxy_pass http://127.0.0.1:8000; # 这里是指向 gunicorn host 的服务地址 + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +} \ No newline at end of file