From ec378076bdb16c22361ac5e3a0c63940f91c0aeb Mon Sep 17 00:00:00 2001 From: smallchill Date: Wed, 10 Jun 2020 21:44:09 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E5=A2=9E=E5=8A=A0=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E7=99=BB=E5=BD=95=E5=9B=9E=E8=B0=83=E5=9C=B0=E5=9D=80?= =?UTF-8?q?nginx=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/docker/app/nginx/web/nginx.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/docker/app/nginx/web/nginx.conf b/script/docker/app/nginx/web/nginx.conf index 1f19bda0b..be503a586 100644 --- a/script/docker/app/nginx/web/nginx.conf +++ b/script/docker/app/nginx/web/nginx.conf @@ -46,7 +46,11 @@ http { } - location ^~/api { + location ^~ /oauth/redirect { + rewrite ^(.*)$ /index.html break; + } + + location ^~ /api { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;