You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/01/27 14:05:58 UTC

[GitHub] [apisix] ShaoZeMing commented on issue #3437: curl: (52) Empty reply from server

ShaoZeMing commented on issue #3437:
URL: https://github.com/apache/apisix/issues/3437#issuecomment-768307832


   configuration:
   
   docker pull apache/apisix:2.2-centos
   mkdir -p  /data/apisix/
   #配置文件:
   
   
   docker run --restart=always -d --name apisix-server \
       --network apisix \
       -p 80:9080 \
       -p 443:9443 \
       -v /data/apisix/conf/config.yaml:/usr/local/apisix/conf/config.yaml  \
       -v /data/apisix/logs:/usr/local/apisix/logs  \
       apache/apisix:2.2-centos
   
   
   
   etcd:
     host:
      - "http://etcd-server:2379"
   #
   # To configure via environment variables, you can use `${{VAR}}` syntax. For instance:
   #
   # etcd:
   #     host:
   #       - "http://${{ETCD_HOST}}:2379"
   #
   # And then run `export ETCD_HOST=$your_host` before `make init`.
   #
   # If the configured environment variable can't be found, an error will be thrown.
   apisix:
     admin_key:
       -
         name: "admin"
         # yamllint disable rule:comments-indentation
         key: edd1c9f034335f136f87ad84b625c8f1  # using fixed API token has security risk, please
         # update it when you deploy to production environment
         # yamllint enable rule:comments-indentation
         role: admin
   
   
   ![image](https://blog.4d4k.com/wp-content/uploads/2021/01/Snipaste_2021-01-27_22-00-31.png)
   
   ![image](https://blog.4d4k.com/wp-content/uploads/2021/01/Snipaste_2021-01-27_22-03-41.png)


----------------------------------------------------------------
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:
users@infra.apache.org