nginx
This commit is contained in:
1 parent
cc43fb39e8
commit
906326ac48
1 file changed
+10
+10
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user