APISIX

Apache APISIX : Software Architecture

flow-software-architecture

Plugin Loading Process

flow-load-plugin

Plugin Hierarchy Structure

flow-plugin-internal

Configuring APISIX

Apache APISIX can be configured in two ways:

  1. By directly changing conf/config.yaml.
  2. Using the --config or the -c flag to pass in the file path of your config file while starting APISIX (apisix start -c <path to config file>).

Configurations can be added to this YAML file and Apache APISIX will fall back to the default configurations for anything that is not configured in this file.

For example, to set the default listening port to 8000 while keeping other configurations as default, your configuration file (config.yaml) would look like:

  1. apisix:
  2. node_listen: 8000 # APISIX listening port

Similarly, to set the listening port to 8000 and set the etcd address to http://foo:2379 while keeping other configurations as default, your configuration file would look like:

  1. apisix:
  2. node_listen: 8000 # APISIX listening port
  3. etcd:
  4. host: "http://foo:2379" # etcd address

Default configurations of APISIX can be found in the conf/config-default.yaml file.

Note: This file is bound to the APISIX source code and should NOT be modified. The configuration should only be changed by the methods mentioned above.

Note: The conf/nginx.conf file is automatically generated by APISIX and should NOT be edited.