From cd07e8ab704f7b3137629466097ad531b5bbaef3 Mon Sep 17 00:00:00 2001 From: wuyibo <771227828@qq.com> Date: Wed, 31 Aug 2022 17:09:34 +0800 Subject: [PATCH] nginx --- docker/nginx/conf/nginx.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/nginx/conf/nginx.conf b/docker/nginx/conf/nginx.conf index b871874f..62a034c8 100644 --- a/docker/nginx/conf/nginx.conf +++ b/docker/nginx/conf/nginx.conf @@ -19,7 +19,13 @@ http { try_files $uri $uri/ /index.html; index index.html index.htm; } - + location /{ + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header REMOTE-HOST $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass http://192.168.1.211:32002/; + } location /prod-api/{ proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr;