lianghao208 commented on issue #211:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/211#issuecomment-768002249


   @tokers 
   
   ```bash
     config.yaml: |-
       apisix:
         node_listen: 9080             # APISIX listening port
         enable_heartbeat: true
         enable_admin: true
         enable_admin_cors: true
         enable_debug: false
         enable_dev_mode: false          # Sets nginx worker_processes to 1 if 
set to true
         enable_reuseport: true          # Enable nginx SO_REUSEPORT switch if 
set to true.
         enable_ipv6: true
         config_center: etcd             # etcd: use etcd to store the config 
value
                                         # yaml: fetch the config value from 
local yaml file `/your_path/conf/apisix.yaml`
   
         #proxy_protocol:                 # Proxy Protocol configuration
         #  listen_http_port: 9181        # The port with proxy protocol for 
http, it differs from node_listen and port_admin.
                                         # This port can only receive http 
request with proxy protocol, but node_listen & port_admin
                                         # can only receive http request. If 
you enable proxy protocol, you must use this port to
                                         # receive http request with proxy 
protocol
         #  listen_https_port: 9182       # The port with proxy protocol for 
https
         #  enable_tcp_pp: true           # Enable the proxy protocol for tcp 
proxy, it works for stream_proxy.tcp option
         #  enable_tcp_pp_to_upstream: true # Enables the proxy protocol to the 
upstream server
   
         proxy_cache:                     # Proxy Caching configuration
           cache_ttl: 10s                 # The default caching time if the 
upstream does not specify the cache time
           zones:                         # The parameters of a cache
           - name: disk_cache_one         # The name of the cache, 
administrator can be specify
                                         # which cache to use by name in the 
admin api
             memory_size: 50m             # The size of shared memory, it's 
used to store the cache index
             disk_size: 1G                # The size of disk, it's used to 
store the cache data
             disk_path: "/tmp/disk_cache_one" # The path to store the cache data
             cache_levels: "1:2"           # The hierarchy levels of a cache
         #  - name: disk_cache_two
         #    memory_size: 50m
         #    disk_size: 1G
         #    disk_path: "/tmp/disk_cache_two"
         #    cache_levels: "1:2"
   
         allow_admin:                  # 
http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
           - 127.0.0.1/24
         #   - "::/64"
         port_admin: 9180
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to