Apache APISIX can be configured in two ways:
- By directly changing
- Using the
-cflag 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:
apisix: 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:
apisix: node_listen: 8000 # APISIX listening port etcd: host: "http://foo:2379" # etcd address
Default configurations of APISIX can be found in the
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.
conf/nginx.conf file is automatically generated by APISIX and should NOT be edited.