fix: update valify rules about whether enabled auth plugin in create/… (#512)

* fix: update valify rules about whether enabled auth plugin in create/update a consumer

* fix: use PLUGIN_MAPPER_SOURCE as the souce of auth plugin
3 files changed
tree: 04bd95141ea7f164121aca7c64da02552b091ddb
  1. .actions/
  2. .github/
  3. api/
  4. compose/
  5. config/
  6. docker/
  7. images/
  8. licenses/
  9. mock/
  10. public/
  11. scripts/
  12. src/
  13. tests/
  14. .asf.yaml
  15. .dockerignore
  16. .editorconfig
  17. .eslintignore
  18. .eslintrc.js
  19. .gitignore
  20. .prettierignore
  21. .prettierrc.js
  22. .stylelintrc.js
  23. CHANGELOG.md
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. Dockerfile
  27. I18N_USER_GUIDE.md
  28. jest.config.js
  29. jsconfig.json
  30. LICENSE
  31. Makefile
  32. manager-api.md
  33. NOTICE
  34. package.json
  35. README.md
  36. README.zh-CN.md
  37. tsconfig.json
  38. USER_GUIDE.md
  39. yarn.lock
README.md

English | 简体中文

Apache APISIX Dashboard

Dashboard for Apache APISIX

Online demo

User Guide

Please refer to User Guide

Deploy with Docker

Please refer to Deploy with Docker README

Deploy Manually

Clone the project

$ git clone https://github.com/apache/apisix-dashboard.git

$ cd apisix-dashboard

Build the manager-api

The manager-api is used to provide APIs for Dashboard, just like a bridge between the Apache APISIX and the Dashboard. Here are the steps to build it manually:

  1. We need MySQL/Golang to be preinstalled.
# e.g Initialization for MySQL, please use a more secure Password instead of 123456.
$ mysql uroot p123456
> source ./api/script/db/schema.sql
  1. Start the Apache APISIX.

Please follow this guide

  1. Check environment variables

According to your local deployment environment, check the environment variables in ./api/run/run.sh, modify the environment variables if needed.

For most users in China, we could use Goproxy to speed up downloading modules.

  1. Build
$ cd api && go build -o ../manager-api . && cd ..
  1. Run
$ sh ./api/run/run.sh &

Build the Dashboard

This project is initialized with Ant Design Pro. The following are some quick guides for how to use.

  1. Make sure you have Node.js(version 10.0.0+)/Nginx installed on your machine.
  2. Install yarn.
  3. Install dependencies:
$ yarn install
  1. Build
$ yarn build
  1. The bundled files are under /dist folder if the step 4 is successful, then we recommend using nginx to handle those files, please install nginx manually, then refer to the nginx conf compose/dashboard_conf/nginx.conf.
  2. Move files under dist folder to nginx's default html folder, then visit http://127.0.0.1 in your browser.

Development

  1. Make sure you have Node.js(version 8.10.0+)/Nginx installed on your machine.
  2. Install yarn.
  3. Install dependencies:
  4. If we want to modify the API, please refer to the config/proxy.ts file.
$ yarn install

$ yarn start

Other

  1. If you need the dashboard-1.0 which is built with Vue.js, please refer to master-vue.

  2. More information about the new dashboard and manager-api please refer to here