Skip to content

Commit

Permalink
fix: dashboard /user/login get error code 405 (#397)
Browse files Browse the repository at this point in the history
* fix: fix dashboard /user/login get error code 405

* fix: modify nginx according to giphoo proposal
  • Loading branch information
liuxiran authored Aug 25, 2020
1 parent cadc48f commit 1ad35b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions compose/dashboard_conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ server {
try_files $uri $uri/ /index.html;
}

location /user/login {
if ( $request_method = 'POST' ) { #HERE
proxy_pass http://manager:8080;
}
try_files $uri $uri/ /index.html;
}

location /apisix/admin {
proxy_pass http://manager:8080/apisix/admin;
}
Expand Down

0 comments on commit 1ad35b0

Please sign in to comment.