From 6a690a6108daa929e593210d1ed681607c18a68a Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Fri, 27 Aug 2021 11:04:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0nginx=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/front.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/front.conf b/docker/front.conf index 1dd6c555..e87ceaa6 100644 --- a/docker/front.conf +++ b/docker/front.conf @@ -14,6 +14,13 @@ server { proxy_pass http://api; } + location /open { + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass http://api; + } + gzip on; gzip_static on; gzip_types text/plain application/json application/javascript application/x-javascript text/css application/xml text/javascript;