From 906326ac48151e3163960dbbf49f65f53494a5aa Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Tue, 5 Apr 2022 19:42:32 +0800 Subject: [PATCH] nginx --- nginx.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nginx.conf b/nginx.conf index bd3299d6..affce798 100644 --- a/nginx.conf +++ b/nginx.conf @@ -2,6 +2,16 @@ server { listen 80; server_name localhost; + location /api/me { + proxy_pass https://auth.test.zhishuyun.com/auth/login/api/me; + proxy_http_version 1.1; + } + + location /api/v1/token { + proxy_pass https://auth.test.zhishuyun.com/auth/login/api/v1/token; + proxy_http_version 1.1; + } + location /api/ { proxy_pass http://zhishuyun-academy-backend:8000/api/; proxy_http_version 1.1;