We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
config.sh
gen-config-yaml.sh
1 parent 4d4b052 commit a07fce2Copy full SHA for a07fce2
example/README.md
@@ -1,8 +1,8 @@
1
### Run
2
3
```
4
-$ chmod +x config.sh
5
-$ sh config.sh
+$ chmod +x gen-config-yaml.sh
+$ sh gen-config-yaml.sh
6
$ docker-compose -p docker-apisix up -d
7
8
example/config.sh
example/gen-config-yaml.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+export etcd_url='http://172.18.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
9
+sed -i -e "s%http://[0-9.]*:2379%`echo $etcd_url`%g" config.yaml
10
11
+mv config.yaml ./apisix_conf/config.yaml
0 commit comments