This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 1ad35b0  fix: dashboard /user/login get error code 405 (#397)
1ad35b0 is described below

commit 1ad35b06b6693ae47ba5464f8c2f65e832946657
Author: liuxiran <[email protected]>
AuthorDate: Tue Aug 25 11:51:34 2020 +0800

    fix: dashboard /user/login get error code 405 (#397)
    
    * fix: fix dashboard /user/login get error code 405
    
    * fix: modify nginx according to giphoo proposal
---
 compose/dashboard_conf/nginx.conf | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/compose/dashboard_conf/nginx.conf 
b/compose/dashboard_conf/nginx.conf
index 3735dd8..497780d 100644
--- a/compose/dashboard_conf/nginx.conf
+++ b/compose/dashboard_conf/nginx.conf
@@ -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;
     }

Reply via email to