Skip to content

Commit

Permalink
doc: sync config.yaml from the latest version of APISIX (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
gxthrj authored Jul 28, 2020
1 parent 062e4e9 commit 5c06235
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ $ cd incubator-apisix-dashboard/compose

$ chmod +x ./manager_conf/build.sh

$ chmod +x gen-config-yaml.sh
$ sh gen-config-yaml.sh

# For most users in China, please use some proxy services like https://www.daocloud.io/mirror to speed up your Docker images pulling.
$ docker-compose -p dashboard up -d
```
Expand Down
11 changes: 11 additions & 0 deletions compose/gen-config-yaml.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

export etcd_url='http://192.17.5.10:2379'

wget https://raw.githubusercontent.com/apache/incubator-apisix/master/conf/config.yaml

sed -i -e ':a' -e 'N' -e '$!ba' -e "s/allow_admin[a-z: #\/._]*\n\( *- [0-9a-zA-Z: #\/._',]*\n*\)*//g" config.yaml

sed -i -e "s%http://[0-9.]*:2379%`echo $etcd_url`%g" config.yaml

mv config.yaml ./apisix_conf/config.yaml

0 comments on commit 5c06235

Please sign in to comment.